From: Sachin Kamat Date: Mon, 6 May 2013 02:35:43 +0000 (-0700) Subject: Input: max8925_onkey - remove redundant platform_set_drvdata() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=18fc6f5096d4fed93421bedc2a26350520fbd6ba;p=deliverable%2Flinux.git Input: max8925_onkey - 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/max8925_onkey.c b/drivers/input/misc/max8925_onkey.c index f9179b2585a9..eef41cfc054d 100644 --- a/drivers/input/misc/max8925_onkey.c +++ b/drivers/input/misc/max8925_onkey.c @@ -148,8 +148,6 @@ static int max8925_onkey_remove(struct platform_device *pdev) input_unregister_device(info->idev); kfree(info); - platform_set_drvdata(pdev, NULL); - return 0; }