From: Sachin Kamat Date: Mon, 6 May 2013 02:34:45 +0000 (-0700) Subject: Input: bfin_rotary - remove redundant platform_set_drvdata() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45d763f953b5ba90af567153c3e1301d65f510e9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: bfin_rotary - remove redundant platform_set_drvdata() Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/bfin_rotary.c b/drivers/input/misc/bfin_rotary.c index a6666e142a91..cd139cb17e32 100644 --- a/drivers/input/misc/bfin_rotary.c +++ b/drivers/input/misc/bfin_rotary.c @@ -208,7 +208,6 @@ static int bfin_rotary_remove(struct platform_device *pdev) peripheral_free_list(per_cnt); kfree(rotary); - platform_set_drvdata(pdev, NULL); return 0; }