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

index 86a8b723ae1533db37f87ae400ad3f30638973e1..2b4e63d81e6d9ffaaab54ce0c8c3a2a8b9087d8a 100644 (file)
@@ -352,8 +352,6 @@ static int bcm_kp_probe(struct platform_device *pdev)
 
        kp->input_dev = input_dev;
 
-       platform_set_drvdata(pdev, kp);
-
        error = bcm_kp_matrix_key_parse_dt(kp);
        if (error)
                return error;