* BACKLIGHT: Give platform_lcd the same name as the platform device.
@ 2008-07-28 22:52 Ben Dooks
0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2008-07-28 22:52 UTC (permalink / raw)
To: akpm, linux-fbdev-devel; +Cc: Ben Dooks
[-- Attachment #1: simtec/simtec-drivers-platlcd-unique-name.patch --]
[-- Type: text/plain, Size: 1299 bytes --]
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>
Index: linux-2.6.26-quilt4/drivers/video/backlight/platform_lcd.c
===================================================================
--- linux-2.6.26-quilt4.orig/drivers/video/backlight/platform_lcd.c 2008-07-28 10:48:01.000000000 +0100
+++ linux-2.6.26-quilt4/drivers/video/backlight/platform_lcd.c 2008-07-28 10:48:29.000000000 +0100
@@ -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");
--
Ben (ben@fluff.org, 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=/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-28 22:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-28 22:52 BACKLIGHT: Give platform_lcd the same name as the platform device Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).