From: Sachin Kamat Date: Mon, 6 May 2013 02:35:57 +0000 (-0700) Subject: Input: mc13783-pwrbutton - remove redundant platform_set_drvdata() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7a9f4ff23ffc164b542cec07073efbe8f6c2a3f3;p=deliverable%2Flinux.git Input: mc13783-pwrbutton - 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/mc13783-pwrbutton.c b/drivers/input/misc/mc13783-pwrbutton.c index 0906ca593d5f..d0277a7b1579 100644 --- a/drivers/input/misc/mc13783-pwrbutton.c +++ b/drivers/input/misc/mc13783-pwrbutton.c @@ -250,7 +250,6 @@ static int mc13783_pwrbutton_remove(struct platform_device *pdev) input_unregister_device(priv->pwr); kfree(priv); - platform_set_drvdata(pdev, NULL); return 0; }