Commit 1a19864e authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij

gpio: xgene: Fix missing spin_lock_init()

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 0397375d
...@@ -189,6 +189,7 @@ static int xgene_gpio_probe(struct platform_device *pdev) ...@@ -189,6 +189,7 @@ static int xgene_gpio_probe(struct platform_device *pdev)
gpio->chip.ngpio = XGENE_MAX_GPIOS; gpio->chip.ngpio = XGENE_MAX_GPIOS;
spin_lock_init(&gpio->lock);
gpio->chip.dev = &pdev->dev; gpio->chip.dev = &pdev->dev;
gpio->chip.direction_input = xgene_gpio_dir_in; gpio->chip.direction_input = xgene_gpio_dir_in;
gpio->chip.direction_output = xgene_gpio_dir_out; gpio->chip.direction_output = xgene_gpio_dir_out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment