Input: pxa930_rotary - remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 6 May 2013 14:36:22 +0000 (07:36 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 8 May 2013 16:04:57 +0000 (09:04 -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/keyboard/pxa930_rotary.c

index bcad95be73aaea053eef65168a9cdcea28a350db..248cdcf952965c616b4de79fca4dfe87f79e38b3 100644 (file)
@@ -181,7 +181,6 @@ static int pxa930_rotary_remove(struct platform_device *pdev)
        free_irq(platform_get_irq(pdev, 0), r);
        input_unregister_device(r->input_dev);
        iounmap(r->mmio_base);
-       platform_set_drvdata(pdev, NULL);
        kfree(r);
 
        return 0;