Skip to content

Commit

Permalink
fbdev: amba: Link fb device to its parent
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Loïc Minier authored and Paul Mundt committed Jun 24, 2011
1 parent 39785eb commit 17e8c4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/amba-clcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 17e8c4e

Please sign in to comment.