mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 15:49:56 +00:00
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>
This commit is contained in:
parent
752451f01c
commit
d39a948fef
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user