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

Commit a5d28d79 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Linus Walleij
Browse files

GPIO: gpio-twl6040: Remove support for legacy (pdata) mode



TWL6040 is used only with OMAP4/5 SoCs and they can only boot in in DT mode.
The support for pdata/legacy boot can be removed.

Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8cd73e4e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -84,14 +84,10 @@ static struct gpio_chip twl6040gpo_chip = {

static int gpo_twl6040_probe(struct platform_device *pdev)
{
	struct twl6040_gpo_data *pdata = pdev->dev.platform_data;
	struct device *twl6040_core_dev = pdev->dev.parent;
	struct twl6040 *twl6040 = dev_get_drvdata(twl6040_core_dev);
	int ret;

	if (pdata)
		twl6040gpo_chip.base = pdata->gpio_base;
	else
	twl6040gpo_chip.base = -1;

	if (twl6040_get_revid(twl6040) < TWL6041_REV_ES2_0)