Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: clps711x: Remove board support

Since board support for the CLPS711X platform was removed,
remove the board support from the driver.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Alexander Shiyan and committed by
Linus Walleij
1bdb5c8e 2e607fca

+6 -2
+6 -2
drivers/gpio/gpio-clps711x.c
··· 20 20 void __iomem *dat, *dir; 21 21 struct gpio_chip *gc; 22 22 struct resource *res; 23 - int err, id = np ? of_alias_get_id(np, "gpio") : pdev->id; 23 + int err, id; 24 24 25 + if (!np) 26 + return -ENODEV; 27 + 28 + id = of_alias_get_id(np, "gpio"); 25 29 if ((id < 0) || (id > 4)) 26 30 return -ENODEV; 27 31 ··· 67 63 break; 68 64 } 69 65 70 - gc->base = id * 8; 66 + gc->base = -1; 71 67 gc->owner = THIS_MODULE; 72 68 platform_set_drvdata(pdev, gc); 73 69