summaryrefslogtreecommitdiffstats
path: root/drivers/video/bochs
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-05-27 14:44:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-02 08:40:21 +0200
commit5134329187c962332bbe4c31d1c62982949552cf (patch)
treeac85af678e081e81d728a529e4de95cf68c65bac /drivers/video/bochs
parent8a26715aad3d88c3876b3305762a7a549472d969 (diff)
downloadbarebox-5134329187c962332bbe4c31d1c62982949552cf.tar.gz
barebox-5134329187c962332bbe4c31d1c62982949552cf.tar.xz
video: reunite fb devices with their hardware parent
So far, only sdlfb and efi associated the framebuffer device they register with the hardware device providing it. Follow suit for all other frame buffers. This enables devinfo to display parentage. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210527124453.22710-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/video/bochs')
-rw-r--r--drivers/video/bochs/bochs_hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/bochs/bochs_hw.c b/drivers/video/bochs/bochs_hw.c
index 252350aebb..debdd36941 100644
--- a/drivers/video/bochs/bochs_hw.c
+++ b/drivers/video/bochs/bochs_hw.c
@@ -201,5 +201,6 @@ int bochs_hw_probe(struct device_d *dev, void __iomem *fb_map, void __iomem *mmi
fb->priv = bochs;
fb->fbops = &bochs_fb_ops;
+ fb->dev.parent = dev;
return register_framebuffer(fb);
}