Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bdb5c8e authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Linus Walleij
Browse files

gpio: clps711x: Remove board support



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

Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 2e607fca
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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);