提交 d24c815b 编写于 作者: S Sachin Kamat 提交者: Tomi Valkeinen

backlight: tosa: Remove redundant spi_set_drvdata

Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Acked-by: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 f767f7ac
...@@ -198,7 +198,7 @@ static int tosa_lcd_probe(struct spi_device *spi) ...@@ -198,7 +198,7 @@ static int tosa_lcd_probe(struct spi_device *spi)
ret = devm_gpio_request_one(&spi->dev, TOSA_GPIO_TG_ON, ret = devm_gpio_request_one(&spi->dev, TOSA_GPIO_TG_ON,
GPIOF_OUT_INIT_LOW, "tg #pwr"); GPIOF_OUT_INIT_LOW, "tg #pwr");
if (ret < 0) if (ret < 0)
goto err_gpio_tg; return ret;
mdelay(60); mdelay(60);
...@@ -219,8 +219,6 @@ static int tosa_lcd_probe(struct spi_device *spi) ...@@ -219,8 +219,6 @@ static int tosa_lcd_probe(struct spi_device *spi)
err_register: err_register:
tosa_lcd_tg_off(data); tosa_lcd_tg_off(data);
err_gpio_tg:
spi_set_drvdata(spi, NULL);
return ret; return ret;
} }
...@@ -235,8 +233,6 @@ static int tosa_lcd_remove(struct spi_device *spi) ...@@ -235,8 +233,6 @@ static int tosa_lcd_remove(struct spi_device *spi)
tosa_lcd_tg_off(data); tosa_lcd_tg_off(data);
spi_set_drvdata(spi, NULL);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册