diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-06-14 17:23:38 +0200 |
---|---|---|
committer | Bartosz Golaszewski <brgl@bgdev.pl> | 2022-07-19 09:56:51 +0200 |
commit | 2a1192ff0835cb4b0ccd6f6e85c93aa0dc6f66b7 (patch) | |
tree | c8f074467935c8b0fc8de7d34cca4506738d69ce /drivers/gpio | |
parent | dt-bindings: gpio: renesas,rcar-gpio: R-Car V3U is R-Car Gen4 (diff) | |
download | linux-2a1192ff0835cb4b0ccd6f6e85c93aa0dc6f66b7.tar.xz linux-2a1192ff0835cb4b0ccd6f6e85c93aa0dc6f66b7.zip |
gpio: twl4030: Drop platform teardown callback
There is no machine providing a teardown callback, so drop the unused
code.
This is a preparation for making platform remove callbacks return void.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-twl4030.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/gpio/gpio-twl4030.c b/drivers/gpio/gpio-twl4030.c index de249726230e..e2cb7cb90c8c 100644 --- a/drivers/gpio/gpio-twl4030.c +++ b/drivers/gpio/gpio-twl4030.c @@ -593,18 +593,7 @@ out: /* Cannot use as gpio_twl4030_probe() calls us */ static int gpio_twl4030_remove(struct platform_device *pdev) { - struct twl4030_gpio_platform_data *pdata = dev_get_platdata(&pdev->dev); struct gpio_twl4030_priv *priv = platform_get_drvdata(pdev); - int status; - - if (pdata && pdata->teardown) { - status = pdata->teardown(&pdev->dev, priv->gpio_chip.base, - TWL4030_GPIO_MAX); - if (status) { - dev_dbg(&pdev->dev, "teardown --> %d\n", status); - return status; - } - } gpiochip_remove(&priv->gpio_chip); |