gpio/ich: Add missing spinlock init
authorJean Delvare <khali@linux-fr.org>
Sun, 16 Dec 2012 20:31:40 +0000 (21:31 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 19 Dec 2012 22:13:08 +0000 (22:13 +0000)
As reported by CONFIG_DEBUG_SPINLOCK=y.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-ich.c

index 6cc87ac8e0192d4596fed24c3efea7663f332898..6f2306db85915eca2690895eda7e8f6b375091ab 100644 (file)
@@ -390,6 +390,7 @@ static int ichx_gpio_probe(struct platform_device *pdev)
                return -ENODEV;
        }
 
+       spin_lock_init(&ichx_priv.lock);
        res_base = platform_get_resource(pdev, IORESOURCE_IO, ICH_RES_GPIO);
        ichx_priv.use_gpio = ich_info->use_gpio;
        err = ichx_gpio_request_regions(res_base, pdev->name,