From: Loïc Minier Date: Mon, 20 Jun 2011 20:44:17 +0000 (+0000) Subject: fbdev: amba: Link fb device to its parent X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~2512^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=17e8c4e1ebf139743e3830439fa65fd906af4a43;p=mirror_ubuntu-zesty-kernel.git 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: Loïc Minier Cc: Russell King Signed-off-by: Paul Mundt --- diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index 5fc983c5b92c..cf03ad067147 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);