aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/l4f00242t03.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/backlight/l4f00242t03.c')
-rw-r--r--drivers/video/backlight/l4f00242t03.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/backlight/l4f00242t03.c b/drivers/video/backlight/l4f00242t03.c
index b5fc13bc24e7..63e763828e0e 100644
--- a/drivers/video/backlight/l4f00242t03.c
+++ b/drivers/video/backlight/l4f00242t03.c
@@ -223,8 +223,8 @@ static int l4f00242t03_probe(struct spi_device *spi)
223 return PTR_ERR(priv->core_reg); 223 return PTR_ERR(priv->core_reg);
224 } 224 }
225 225
226 priv->ld = lcd_device_register("l4f00242t03", 226 priv->ld = devm_lcd_device_register(&spi->dev, "l4f00242t03", &spi->dev,
227 &spi->dev, priv, &l4f_ops); 227 priv, &l4f_ops);
228 if (IS_ERR(priv->ld)) 228 if (IS_ERR(priv->ld))
229 return PTR_ERR(priv->ld); 229 return PTR_ERR(priv->ld);
230 230
@@ -243,8 +243,6 @@ static int l4f00242t03_remove(struct spi_device *spi)
243 struct l4f00242t03_priv *priv = spi_get_drvdata(spi); 243 struct l4f00242t03_priv *priv = spi_get_drvdata(spi);
244 244
245 l4f00242t03_lcd_power_set(priv->ld, FB_BLANK_POWERDOWN); 245 l4f00242t03_lcd_power_set(priv->ld, FB_BLANK_POWERDOWN);
246 lcd_device_unregister(priv->ld);
247
248 return 0; 246 return 0;
249} 247}
250 248