Skip to contentSkip to conversation

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

PATCH In review Peter Ujfalusi 2 participants 2 messages Jul 12, 2013 – Jul 20, 2013 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/gpio/gpio-twl6040.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/gpio/gpio-twl6040.c +1 -5
index 0be82c6..d420d30 100644
@@ -84,15 +84,11 @@ 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;
+	twl6040gpo_chip.base = -1;
 
 	if (twl6040_get_revid(twl6040) < TWL6041_REV_ES2_0)
 		twl6040gpo_chip.ngpio = 3; /* twl6040 have 3 GPO */
Signature · 1 line
1.8.2.1
#1 lore raw
Quoted 4 lines · Peter Ujfalusi

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.

OK patch applied.

Yours,
Linus Walleij