summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-104-idio-16.c
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2017-01-30 09:39:57 -0500
committerLinus Walleij <linus.walleij@linaro.org>2017-02-01 15:59:19 +0100
commitc74f04d4b5b5049d6bd94bdc85a9da7b5896ca4b (patch)
tree5f5b5af3b59671d839b6434d98a96facb26fc498 /drivers/gpio/gpio-104-idio-16.c
parentb4e73edee51a3c1c00186fe86b51f6626757ffc3 (diff)
downloadlinux-c74f04d4b5b5049d6bd94bdc85a9da7b5896ca4b.tar.gz
linux-c74f04d4b5b5049d6bd94bdc85a9da7b5896ca4b.tar.bz2
linux-c74f04d4b5b5049d6bd94bdc85a9da7b5896ca4b.zip
gpio: 104-idio-16: Remove unnecessary driver_data set
Setting driver_data was necessary to access private data in the idio_16_remove function. Now that the idio_16_remove function is gone, driver_data is no longer used. This patch removes the relevant code. Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-104-idio-16.c')
-rw-r--r--drivers/gpio/gpio-104-idio-16.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-104-idio-16.c b/drivers/gpio/gpio-104-idio-16.c
index 01a091e17614..67068b61b90b 100644
--- a/drivers/gpio/gpio-104-idio-16.c
+++ b/drivers/gpio/gpio-104-idio-16.c
@@ -242,8 +242,6 @@ static int idio_16_probe(struct device *dev, unsigned int id)
spin_lock_init(&idio16gpio->lock);
- dev_set_drvdata(dev, idio16gpio);
-
err = devm_gpiochip_add_data(dev, &idio16gpio->chip, idio16gpio);
if (err) {
dev_err(dev, "GPIO registering failed (%d)\n", err);