From: Sachin Kamat Date: Mon, 6 May 2013 02:34:45 +0000 (-0700) Subject: Input: bfin_rotary - remove redundant platform_set_drvdata() X-Git-Tag: v3.11-rc1~86^2~7^2~71 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=45d763f953b5ba90af567153c3e1301d65f510e9;p=~emulex%2Finfiniband.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 a6666e142a9..cd139cb17e3 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; }