]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
gpio: 104-dio-48e: Remove unnecessary driver_data set
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Mon, 30 Jan 2017 14:39:37 +0000 (09:39 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 1 Feb 2017 14:59:18 +0000 (15:59 +0100)
Setting driver_data was necessary to access private data in the
dio48e_remove function. Now that the dio48e_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>
drivers/gpio/gpio-104-dio-48e.c

index 221243f17d4e4eba768cf071a5a10b096711f214..b6b0378166c4070c2c09bbef30ee96f8bff0fb82 100644 (file)
@@ -369,8 +369,6 @@ static int dio48e_probe(struct device *dev, unsigned int id)
 
        spin_lock_init(&dio48egpio->lock);
 
-       dev_set_drvdata(dev, dio48egpio);
-
        err = devm_gpiochip_add_data(dev, &dio48egpio->chip, dio48egpio);
        if (err) {
                dev_err(dev, "GPIO registering failed (%d)\n", err);