diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2016-06-04 09:10:12 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-06-08 10:49:58 +0200 |
commit | 1bdb5c8e03f1dd657d8afdbd50910eaebfc822e4 (patch) | |
tree | c51ce1d7fdf848aa962d8c442d30358b8b3162f5 /drivers/gpio | |
parent | gpio: syscon: Change the compatibility string (diff) | |
download | linux-1bdb5c8e03f1dd657d8afdbd50910eaebfc822e4.tar.xz linux-1bdb5c8e03f1dd657d8afdbd50910eaebfc822e4.zip |
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-clps711x.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c index cd3781e5622f..52fd63f02134 100644 --- a/drivers/gpio/gpio-clps711x.c +++ b/drivers/gpio/gpio-clps711x.c @@ -20,8 +20,12 @@ static int clps711x_gpio_probe(struct platform_device *pdev) void __iomem *dat, *dir; struct gpio_chip *gc; struct resource *res; - int err, id = np ? of_alias_get_id(np, "gpio") : pdev->id; + int err, id; + if (!np) + return -ENODEV; + + id = of_alias_get_id(np, "gpio"); if ((id < 0) || (id > 4)) return -ENODEV; @@ -63,7 +67,7 @@ static int clps711x_gpio_probe(struct platform_device *pdev) break; } - gc->base = id * 8; + gc->base = -1; gc->owner = THIS_MODULE; platform_set_drvdata(pdev, gc); |