diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2013-07-12 07:30:43 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-07-20 15:38:18 -0400 |
commit | a5d28d79f568a0a2792e3135b304a82b1f91d4ad (patch) | |
tree | 9ad17aa1f5c1f024dd6514cfd0e7f56da986c1d9 /drivers/gpio | |
parent | 8cd73e4e3807315115122fd4e3ac7c33007cdf9c (diff) |
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: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-twl6040.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-twl6040.c b/drivers/gpio/gpio-twl6040.c index 0be82c6dd796..d420d30b86e7 100644 --- a/drivers/gpio/gpio-twl6040.c +++ b/drivers/gpio/gpio-twl6040.c | |||
@@ -84,15 +84,11 @@ static struct gpio_chip twl6040gpo_chip = { | |||
84 | 84 | ||
85 | static int gpo_twl6040_probe(struct platform_device *pdev) | 85 | static int gpo_twl6040_probe(struct platform_device *pdev) |
86 | { | 86 | { |
87 | struct twl6040_gpo_data *pdata = pdev->dev.platform_data; | ||
88 | struct device *twl6040_core_dev = pdev->dev.parent; | 87 | struct device *twl6040_core_dev = pdev->dev.parent; |
89 | struct twl6040 *twl6040 = dev_get_drvdata(twl6040_core_dev); | 88 | struct twl6040 *twl6040 = dev_get_drvdata(twl6040_core_dev); |
90 | int ret; | 89 | int ret; |
91 | 90 | ||
92 | if (pdata) | 91 | twl6040gpo_chip.base = -1; |
93 | twl6040gpo_chip.base = pdata->gpio_base; | ||
94 | else | ||
95 | twl6040gpo_chip.base = -1; | ||
96 | 92 | ||
97 | if (twl6040_get_revid(twl6040) < TWL6041_REV_ES2_0) | 93 | if (twl6040_get_revid(twl6040) < TWL6041_REV_ES2_0) |
98 | twl6040gpo_chip.ngpio = 3; /* twl6040 have 3 GPO */ | 94 | twl6040gpo_chip.ngpio = 3; /* twl6040 have 3 GPO */ |