summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-ts5500.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2018-08-29 17:16:18 +0200
committerLinus Walleij <linus.walleij@linaro.org>2018-09-04 08:22:47 +0200
commit97feacc05dfb601273fd680d7b805b8e09c1bec7 (patch)
treed4c2abfd28aba282a048d68e4d02687a1eea7707 /drivers/gpio/gpio-ts5500.c
parentbf97279079be21fc843d90489846d2c73c77ed09 (diff)
downloadlinux-97feacc05dfb601273fd680d7b805b8e09c1bec7.tar.gz
linux-97feacc05dfb601273fd680d7b805b8e09c1bec7.tar.bz2
linux-97feacc05dfb601273fd680d7b805b8e09c1bec7.zip
gpio: ts5500: Delete platform data handling
The TS5500 GPIO driver apparently supports platform data without making any use of it whatsoever. Delete this code, last chance to speak up if you think it is needed. Cc: kernel@savoirfairelinux.com Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Cc: Jerome Oufella <jerome.oufella@savoirfairelinux.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-ts5500.c')
-rw-r--r--drivers/gpio/gpio-ts5500.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-ts5500.c b/drivers/gpio/gpio-ts5500.c
index d4ea3ee23b9c..c91890488402 100644
--- a/drivers/gpio/gpio-ts5500.c
+++ b/drivers/gpio/gpio-ts5500.c
@@ -23,7 +23,6 @@
#include <linux/gpio/driver.h>
#include <linux/io.h>
#include <linux/module.h>
-#include <linux/platform_data/gpio-ts5500.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
@@ -315,7 +314,6 @@ static void ts5500_disable_irq(struct ts5500_priv *priv)
static int ts5500_dio_probe(struct platform_device *pdev)
{
enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data;
- struct ts5500_dio_platform_data *pdata = dev_get_platdata(&pdev->dev);
struct device *dev = &pdev->dev;
const char *name = dev_name(dev);
struct ts5500_priv *priv;
@@ -346,10 +344,6 @@ static int ts5500_dio_probe(struct platform_device *pdev)
priv->gpio_chip.set = ts5500_gpio_set;
priv->gpio_chip.to_irq = ts5500_gpio_to_irq;
priv->gpio_chip.base = -1;
- if (pdata) {
- priv->gpio_chip.base = pdata->base;
- priv->strap = pdata->strap;
- }
switch (block) {
case TS5500_DIO1: