From: Guenter Roeck Date: Wed, 18 Jan 2017 19:48:11 +0000 (-0800) Subject: Input: bcm-keypad - drop unnecessary call to platform_set_drvdata X-Git-Tag: v4.14-rc1~4^2~54^2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8beb7172b428a63634684a8a2bf8754002756056;p=platform%2Fkernel%2Flinux-rpi.git Input: bcm-keypad - drop unnecessary call to platform_set_drvdata 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/bcm-keypad.c b/drivers/input/keyboard/bcm-keypad.c index 86a8b72..2b4e63d 100644 --- a/drivers/input/keyboard/bcm-keypad.c +++ b/drivers/input/keyboard/bcm-keypad.c @@ -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;