Skip to content

Commit

Permalink
leds: dac124s085: Remove redundant spi_set_drvdata
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and cooloney committed Oct 22, 2013
1 parent f65f0a1 commit b4f31ad
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/leds/leds-dac124s085.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ static int dac124s085_probe(struct spi_device *spi)
while (i--)
led_classdev_unregister(&dac->leds[i].ldev);

spi_set_drvdata(spi, NULL);
return ret;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit b4f31ad

Please sign in to comment.