Skip to content

Commit

Permalink
gpio: clps711x: Remove board support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
shcgit authored and linusw committed Jun 8, 2016
1 parent 2e607fc commit 1bdb5c8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/gpio/gpio-clps711x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 1bdb5c8

Please sign in to comment.