linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FB: Fix platform_lcd match entry.
@ 2008-07-08  9:37 Ben Dooks
  0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2008-07-08  9:37 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: akpm, Ben Dooks

[-- Attachment #1: simtec/simtec-drivers-fb-platformlcd-fixmatch.patch --]
[-- Type: text/plain, Size: 1062 bytes --]

The platform_lcd driver was matching against the
framebuffer device entry, and not the framebuffer's
parent device.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>

--- linux-2.6.26-rc6-quilt1.orig/drivers/video/backlight/platform_lcd.c	2008-06-15 20:27:56.000000000 +0100
+++ linux-2.6.26-rc6-quilt1/drivers/video/backlight/platform_lcd.c	2008-06-15 21:07:22.000000000 +0100
@@ -62,7 +62,7 @@ static int platform_lcd_match(struct lcd
 	if (pdata->match_fb)
 		return pdata->match_fb(pdata, info);
 
-	return plcd->us->parent == info->dev;
+	return plcd->us->parent == info->device;
 }
 
 static struct lcd_ops platform_lcd_ops = {

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-08  9:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08  9:37 FB: Fix platform_lcd match entry 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).