From: Sachin Kamat Date: Fri, 20 Sep 2013 06:38:52 +0000 (+0530) Subject: backlight: l4f00242t03: Remove redundant spi_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f767f7acee328933be4e7936a2115560f44846d5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git backlight: l4f00242t03: Remove redundant spi_set_drvdata Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Acked-by: Jingoo Han Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers/video/backlight/l4f00242t03.c index a35a38c709cf..59eebe0b3846 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; }