From: Jean Delvare Date: Sun, 16 Dec 2012 20:31:40 +0000 (+0100) Subject: gpio/ich: Add missing spinlock init X-Git-Tag: upstream/snapshot3+hdmi~5998^3~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d39a948fef2446cfac3749bbfcfdd536335c3764;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git gpio/ich: Add missing spinlock init As reported by CONFIG_DEBUG_SPINLOCK=y. Signed-off-by: Jean Delvare Acked-by: Peter Tyser Signed-off-by: Grant Likely --- diff --git a/drivers/gpio/gpio-ich.c b/drivers/gpio/gpio-ich.c index 6cc87ac..6f2306d 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) 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,