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

index 4f5ef5bb535b86dcd0d16a198dca65de731f746f..a33ed5710b15a5c8d6079b837b24dc24a9aa1697 100644 (file)
@@ -109,7 +109,6 @@ static int ab8500_ponkey_probe(struct platform_device *pdev)
                return error;
        }
 
-       platform_set_drvdata(pdev, ponkey);
        return 0;
 }