Input: ixp4xx-beeper - remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 28 May 2013 06:39:41 +0000 (23:39 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 28 May 2013 07:57:35 +0000 (00:57 -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/ixp4xx-beeper.c

index deab4a11350a4ee33bfebe459fbe7fedcd70e48a..f34beb228d3689e055fb1c39ecc5fe41509f9fe8 100644 (file)
@@ -138,7 +138,6 @@ static int ixp4xx_spkr_remove(struct platform_device *dev)
        unsigned int pin = (unsigned int) input_get_drvdata(input_dev);
 
        input_unregister_device(input_dev);
-       platform_set_drvdata(dev, NULL);
 
        /* turn the speaker off */
        disable_irq(IRQ_IXP4XX_TIMER2);