Input: twl4030_keypad - drop unnecessary call to platform_set_drvdata
authorGuenter Roeck <linux@roeck-us.net>
Wed, 18 Jan 2017 19:45:25 +0000 (11:45 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Jan 2017 19:49:20 +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/keyboard/twl4030_keypad.c

index 323a0fb575a442d7c3b50837c0a1a235693fe8d2..29396ca69416ea3c80e8697b8ae62dc634d0607f 100644 (file)
@@ -441,7 +441,6 @@ static int twl4030_kp_probe(struct platform_device *pdev)
                return -EIO;
        }
 
-       platform_set_drvdata(pdev, kp);
        return 0;
 }