Re: [PATCH 1/2] backlight: l4f00242t03: Remove redundant spi_set_drvdata

From
Tomi Valkeinen <hidden>
Date
2013-09-26 08:48:11
Reply to
Sachin Kamat, 2013-09-20
On 20/09/13 09:38, Sachin Kamat wrote:
quoted hunk ↗ jump to hunk
Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <redacted>
---
 drivers/video/backlight/l4f00242t03.c |    1 -
 1 file changed, 1 deletion(-)
diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers/video/backlight/l4f00242t03.c
index a35a38c..59eebe0 100644
--- a/drivers/video/backlight/l4f00242t03.c
+++ b/drivers/video/backlight/l4f00242t03.c
@@ -244,7 +244,6 @@ static int l4f00242t03_remove(struct spi_device *spi)
 
 	l4f00242t03_lcd_power_set(priv->ld, FB_BLANK_POWERDOWN);
 	lcd_device_unregister(priv->ld);
-	spi_set_drvdata(spi, NULL);
 
 	return 0;
 }
Thanks, queuing this and the second patch for 3.13.

 Tomi

Attachments

Thread (4 messages) 4 messages, 3 authors, last reply 2013-09-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help