Skip to contentSkip to conversation

BACKLIGHT: Give platform_lcd the same name as the platform device.

PATCH Ben Dooks 1 participant 1 message Jul 28, 2008

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

When registering an platform_lcd, use the name of the platform device specified in case there are more than one platform_lcd backlights registered.

drivers/video/backlight/platform_lcd.c +1 -1
Index: linux-2.6.26-quilt4/drivers/video/backlight/platform_lcd.c
===================================================================
@@ -96,7 +96,7 @@ static int __devinit platform_lcd_probe(
 
 	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");
Signature · 9 lines
Ben ([email protected], http://www.fluff.org/)

  'a smiley only costs 4 bytes'

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/