diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-07-30 01:32:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-30 12:41:43 -0400 |
commit | e958d3ace7791f33518f0259cd3cf229408b135c (patch) | |
tree | 9bdc01f5d42e2b2da6f7acce6dc90ea5851542f5 /drivers/video | |
parent | 6e86841d05f371b5b9b86ce76c02aaee83352298 (diff) |
backlight: give platform_lcd the same name as the platform device.
When registering an platform_lcd, use the name of the platform device
specified in case there are more than one platform_lcd backlights
registered.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/platform_lcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/platform_lcd.c b/drivers/video/backlight/platform_lcd.c index 72d44dbfce82..29d7121e3275 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"); |