gpio: xgene: Fix missing spin_lock_init()
authorAxel Lin <axel.lin@ingics.com>
Sun, 21 Sep 2014 04:31:29 +0000 (12:31 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 24 Sep 2014 09:00:54 +0000 (11:00 +0200)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-xgene.c

index 150e7f1c5ae85d95efe4924b864ea80219b780d6..35104fd06bb93e915aa47789cfca5f1f8c039c90 100644 (file)
@@ -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;