Commit 17e8c4e1 authored by Loïc Minier's avatar Loïc Minier Committed by Paul Mundt

fbdev: amba: Link fb device to its parent

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: default avatarLoïc Minier <loic.minier@linaro.org>
Cc: Russell King <linux@arm.linux.org.uk>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 39785eb1
...@@ -447,6 +447,8 @@ static int clcdfb_register(struct clcd_fb *fb) ...@@ -447,6 +447,8 @@ static int clcdfb_register(struct clcd_fb *fb)
goto out; goto out;
} }
fb->fb.device = &fb->dev->dev;
fb->fb.fix.mmio_start = fb->dev->res.start; fb->fb.fix.mmio_start = fb->dev->res.start;
fb->fb.fix.mmio_len = resource_size(&fb->dev->res); fb->fb.fix.mmio_len = resource_size(&fb->dev->res);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment