From: Sachin Kamat Date: Mon, 6 May 2013 02:34:17 +0000 (-0700) Subject: Input: ab8500-ponkey - remove redundant platform_set_drvdata() X-Git-Tag: v3.11-rc1~86^2~7^2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aafc72ee3fa2dc366a2689b63d2b3dbe5302cdc7;p=thirdparty%2Fkernel%2Flinux.git Input: ab8500-ponkey - 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/ab8500-ponkey.c b/drivers/input/misc/ab8500-ponkey.c index 2f090b46e7164..f2fbdd88ed20a 100644 --- a/drivers/input/misc/ab8500-ponkey.c +++ b/drivers/input/misc/ab8500-ponkey.c @@ -127,8 +127,6 @@ static int ab8500_ponkey_remove(struct platform_device *pdev) input_unregister_device(ponkey->idev); kfree(ponkey); - platform_set_drvdata(pdev, NULL); - return 0; }