Input: gpio_decoder - drop unnecessary call to platform_set_drvdata
authorGuenter Roeck <linux@roeck-us.net>
Wed, 18 Jan 2017 19:40:04 +0000 (11:40 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Jan 2017 19:49:13 +0000 (11:49 -0800)
There is no call to platform_get_drvdata() or dev_get_drvdata().
Drop the unnecessary call to platform_set_drvdata().

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/gpio_decoder.c

index ca7e0bacb2d8c4718884907262bd0ea8bec74005..1dca526e6f1a5c32966932ee4f4bfe070157c2ca 100644 (file)
@@ -110,7 +110,6 @@ static int gpio_decoder_probe(struct platform_device *pdev)
                dev_err(dev, "failed to register polled  device\n");
                return err;
        }
-       platform_set_drvdata(pdev, decoder);
 
        return 0;
 }