mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
leds: dac124s085: Remove redundant spi_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <[email protected]> Cc: Guennadi Liakhovetski <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
This commit is contained in:
parent
f65f0a1a98
commit
b4f31ad618
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue