Input: gpio_mouse - remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 6 May 2013 03:00:38 +0000 (20:00 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 May 2013 03:15:18 +0000 (20:15 -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>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/gpio_mouse.c

index 532eaca4cc56d1452ea75024dd416c7e93032e5e..6b44413f54e357cd9201af5dc011bed845e1377d 100644 (file)
@@ -138,7 +138,6 @@ static int gpio_mouse_probe(struct platform_device *pdev)
 
  out_free_polldev:
        input_free_polled_device(input_poll);
-       platform_set_drvdata(pdev, NULL);
 
  out_free_gpios:
        while (--i >= 0) {
@@ -165,8 +164,6 @@ static int gpio_mouse_remove(struct platform_device *pdev)
                        gpio_free(pin);
        }
 
-       platform_set_drvdata(pdev, NULL);
-
        return 0;
 }