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:
Axel Lin 2014-09-21 12:31:29 +08:00 • committed by Linus Walleij
commit 1a19864e3b

View 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;