All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: amba: Link fb device to its parent
@ 2011-06-20 20:44 ` Loïc Minier
  0 siblings, 0 replies; 10+ messages in thread
From: Loïc Minier @ 2011-06-20 20:44 UTC (permalink / raw)
  To: linux-arm-kernel

Some pieces of userspace like debian-installer expect to find the fb0
driver name by readlink-ing /sys/class/graphics/fb0/device/driver but
this was broken with amba-clcd as it sets up fb_info manually and missed
the .device parent pointer.

Signed-off-by: Loïc Minier <loic.minier@linaro.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Paul Mundt <lethal@linux-sh.org>
---
 drivers/video/amba-clcd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c
index 5fc983c..cf03ad0 100644
--- a/drivers/video/amba-clcd.c
+++ b/drivers/video/amba-clcd.c
@@ -447,6 +447,8 @@ static int clcdfb_register(struct clcd_fb *fb)
 		goto out;
 	}
 
+	fb->fb.device		= &fb->dev->dev;
+
 	fb->fb.fix.mmio_start	= fb->dev->res.start;
 	fb->fb.fix.mmio_len	= resource_size(&fb->dev->res);
 
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-06-26 16:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20 20:44 [PATCH] ARM: amba: Link fb device to its parent Loïc Minier
2011-06-20 20:44 ` Loïc Minier
2011-06-24  8:07 ` Paul Mundt
2011-06-24  8:07   ` Paul Mundt
2011-06-24  9:01   ` Russell King - ARM Linux
2011-06-24  9:01     ` Russell King - ARM Linux
2011-06-24 13:57   ` Nicolas Pitre
2011-06-24 13:57     ` Nicolas Pitre
2011-06-26 16:20     ` Paul Mundt
2011-06-26 16:20       ` Paul Mundt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.