From: Axel Lin Date: Sun, 21 Sep 2014 04:31:29 +0000 (+0800) Subject: gpio: xgene: Fix missing spin_lock_init() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a19864e3bc2715e95940c7ec89f75c77030ccb5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gpio: xgene: Fix missing spin_lock_init() Signed-off-by: Axel Lin Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-xgene.c b/drivers/gpio/gpio-xgene.c index 150e7f1c5ae8..35104fd06bb9 100644 --- a/drivers/gpio/gpio-xgene.c +++ b/drivers/gpio/gpio-xgene.c @@ -189,6 +189,7 @@ static int xgene_gpio_probe(struct platform_device *pdev) gpio->chip.ngpio = XGENE_MAX_GPIOS; + spin_lock_init(&gpio->lock); gpio->chip.dev = &pdev->dev; gpio->chip.direction_input = xgene_gpio_dir_in; gpio->chip.direction_output = xgene_gpio_dir_out;