summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-xgene.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-09-21 08:31:29 +0400
committerLinus Walleij <linus.walleij@linaro.org>2014-09-24 13:00:54 +0400
commit1a19864e3bc2715e95940c7ec89f75c77030ccb5 (patch)
tree41f67f8716aa36a8f4ee9ea650bf1725f2c1b9a0 /drivers/gpio/gpio-xgene.c
parent0397375dc936142fa0b96b525064306f4c2e312d (diff)
downloadlinux-1a19864e3bc2715e95940c7ec89f75c77030ccb5.tar.xz
gpio: xgene: Fix missing spin_lock_init()
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-xgene.c')
-rw-r--r--drivers/gpio/gpio-xgene.c1
1 files changed, 1 insertions, 0 deletions
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;