Commit d39a948f authored by Jean Delvare's avatar Jean Delvare Committed by Grant Likely

gpio/ich: Add missing spinlock init

As reported by CONFIG_DEBUG_SPINLOCK=y.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Acked-by: default avatarPeter Tyser <ptyser@xes-inc.com>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 752451f0
...@@ -390,6 +390,7 @@ static int ichx_gpio_probe(struct platform_device *pdev) ...@@ -390,6 +390,7 @@ static int ichx_gpio_probe(struct platform_device *pdev)
return -ENODEV; return -ENODEV;
} }
spin_lock_init(&ichx_priv.lock);
res_base = platform_get_resource(pdev, IORESOURCE_IO, ICH_RES_GPIO); res_base = platform_get_resource(pdev, IORESOURCE_IO, ICH_RES_GPIO);
ichx_priv.use_gpio = ich_info->use_gpio; ichx_priv.use_gpio = ich_info->use_gpio;
err = ichx_gpio_request_regions(res_base, pdev->name, err = ichx_gpio_request_regions(res_base, pdev->name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment