leds: dac124s085: Remove redundant spi_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 20 Sep 2013 04:27:59 +0000 (21:27 -0700)
committerBryan Wu <cooloney@gmail.com>
Tue, 22 Oct 2013 17:57:34 +0000 (10:57 -0700)
Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-dac124s085.c

index 1f9d8e6..db3ba8b 100644 (file)
@@ -101,7 +101,6 @@ eledcr:
        while (i--)
                led_classdev_unregister(&dac->leds[i].ldev);
 
-       spi_set_drvdata(spi, NULL);
        return ret;
 }
 
@@ -115,8 +114,6 @@ static int dac124s085_remove(struct spi_device *spi)
                cancel_work_sync(&dac->leds[i].work);
        }
 
-       spi_set_drvdata(spi, NULL);
-
        return 0;
 }