From 1a19864e3bc2715e95940c7ec89f75c77030ccb5 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sun, 21 Sep 2014 12:31:29 +0800 Subject: [PATCH] gpio: xgene: Fix missing spin_lock_init() Signed-off-by: Axel Lin Signed-off-by: Linus Walleij --- drivers/gpio/gpio-xgene.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.20.1