On Thu, Sep 19, 2013 at 9:27 PM, Sachin Kamat <sachin.kamat@xxxxxxxxxx> wrote: > Driver core sets driver data to NULL upon failure or remove. > Good, I merged it into my tree. Thanks, -Bryan > Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx> > Cc: Guennadi Liakhovetski <lg@xxxxxxx> > --- > drivers/leds/leds-dac124s085.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/leds/leds-dac124s085.c b/drivers/leds/leds-dac124s085.c > index 1f9d8e6..db3ba8b 100644 > --- a/drivers/leds/leds-dac124s085.c > +++ b/drivers/leds/leds-dac124s085.c > @@ -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; > } > > -- > 1.7.9.5 > -- To unsubscribe from this list: send the line "unsubscribe linux-leds" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html