mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 17:43:59 +00:00
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>
This commit is contained in:
parent
0397375dc9
commit
1a19864e3b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user