diff options
author | Jean Delvare <khali@linux-fr.org> | 2012-12-16 15:31:40 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-12-19 17:13:08 -0500 |
commit | d39a948fef2446cfac3749bbfcfdd536335c3764 (patch) | |
tree | 03f073056e8b84070cb2c45f0e2132fa67cbbef7 | |
parent | 752451f01c4567b506bf4343082682dbb8fb30dd (diff) |
gpio/ich: Add missing spinlock init
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>
-rw-r--r-- | drivers/gpio/gpio-ich.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-ich.c b/drivers/gpio/gpio-ich.c index 6cc87ac8e019..6f2306db8591 100644 --- a/drivers/gpio/gpio-ich.c +++ b/drivers/gpio/gpio-ich.c | |||
@@ -390,6 +390,7 @@ static int ichx_gpio_probe(struct platform_device *pdev) | |||
390 | return -ENODEV; | 390 | return -ENODEV; |
391 | } | 391 | } |
392 | 392 | ||
393 | spin_lock_init(&ichx_priv.lock); | ||
393 | res_base = platform_get_resource(pdev, IORESOURCE_IO, ICH_RES_GPIO); | 394 | res_base = platform_get_resource(pdev, IORESOURCE_IO, ICH_RES_GPIO); |
394 | ichx_priv.use_gpio = ich_info->use_gpio; | 395 | ichx_priv.use_gpio = ich_info->use_gpio; |
395 | err = ichx_gpio_request_regions(res_base, pdev->name, | 396 | err = ichx_gpio_request_regions(res_base, pdev->name, |