diff options
Diffstat (limited to 'drivers/video/backlight/platform_lcd.c')
-rw-r--r-- | drivers/video/backlight/platform_lcd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/backlight/platform_lcd.c b/drivers/video/backlight/platform_lcd.c index 72d44dbfce8..738694d2388 100644 --- a/drivers/video/backlight/platform_lcd.c +++ b/drivers/video/backlight/platform_lcd.c | |||
@@ -92,7 +92,7 @@ static int __devinit platform_lcd_probe(struct platform_device *pdev) | |||
92 | 92 | ||
93 | plcd->us = dev; | 93 | plcd->us = dev; |
94 | plcd->pdata = pdata; | 94 | plcd->pdata = pdata; |
95 | plcd->lcd = lcd_device_register("platform-lcd", dev, | 95 | plcd->lcd = lcd_device_register(dev_name(dev), dev, |
96 | plcd, &platform_lcd_ops); | 96 | plcd, &platform_lcd_ops); |
97 | if (IS_ERR(plcd->lcd)) { | 97 | if (IS_ERR(plcd->lcd)) { |
98 | dev_err(dev, "cannot register lcd device\n"); | 98 | dev_err(dev, "cannot register lcd device\n"); |
@@ -101,6 +101,8 @@ static int __devinit platform_lcd_probe(struct platform_device *pdev) | |||
101 | } | 101 | } |
102 | 102 | ||
103 | platform_set_drvdata(pdev, plcd); | 103 | platform_set_drvdata(pdev, plcd); |
104 | platform_lcd_set_power(plcd->lcd, FB_BLANK_NORMAL); | ||
105 | |||
104 | return 0; | 106 | return 0; |
105 | 107 | ||
106 | err_mem: | 108 | err_mem: |