mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Cc: Richard Purdie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6e86841d05
commit
e958d3ace7
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ static int __devinit platform_lcd_probe(struct platform_device *pdev)
|
|||
|
||||
plcd->us = dev;
|
||||
plcd->pdata = pdata;
|
||||
plcd->lcd = lcd_device_register("platform-lcd", dev,
|
||||
plcd->lcd = lcd_device_register(dev_name(dev), dev,
|
||||
plcd, &platform_lcd_ops);
|
||||
if (IS_ERR(plcd->lcd)) {
|
||||
dev_err(dev, "cannot register lcd device\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue