mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Cc: Russell King <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
This commit is contained in:
parent
39785eb1d3
commit
17e8c4e1eb
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue