Skip to contentSkip to conversation

FB: Fix platform_lcd match entry.

PATCH Ben Dooks 1 participant 1 message Jul 8, 2008

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

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

drivers/video/backlight/platform_lcd.c +1 -1
@@ -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 = {
Signature · 9 lines
Ben ([email protected], 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