Input: pwm-beeper - remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 6 May 2013 02:36:43 +0000 (19:36 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 May 2013 03:14:21 +0000 (20:14 -0700)
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 <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/pwm-beeper.c

index 0808868461de0d4bfc1fc67ac5b4d5e377d23ce3..a37f0c909aba7ad34ce95eaa9c23f3bdedd96b4b 100644 (file)
@@ -133,7 +133,6 @@ static int pwm_beeper_remove(struct platform_device *pdev)
 {
        struct pwm_beeper *beeper = platform_get_drvdata(pdev);
 
-       platform_set_drvdata(pdev, NULL);
        input_unregister_device(beeper->input);
 
        pwm_disable(beeper->pwm);