mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
gpio: xgene: Fix missing spin_lock_init()
Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
0397375dc9
commit
1a19864e3b
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue