staging: iio: ad7606_par: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 6 Jun 2013 09:27:00 +0000 (10:27 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 6 Jun 2013 18:31:43 +0000 (19:31 +0100)
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>
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7606_par.c

index 58cfddea96379ad1dd12039f615f57958e39e768..8a48d18de788de8731d9d7201529049e469bd9f8 100644 (file)
@@ -112,8 +112,6 @@ static int ad7606_par_remove(struct platform_device *pdev)
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        release_mem_region(res->start, resource_size(res));
 
-       platform_set_drvdata(pdev, NULL);
-
        return 0;
 }