]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
fbdev/pxa168fb: Do not assign to struct fb_info.dev
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 13 Jun 2023 11:06:55 +0000 (13:06 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 27 Jun 2023 07:58:49 +0000 (09:58 +0200)
Do not assign the hardware device to struct fb_info.dev. The
field references the fbdev software device, which is unrelated.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230613110953.24176-21-tzimmermann@suse.de
drivers/video/fbdev/pxa168fb.c

index 79f3384630926139f71ffa97cb25789b693c4bba..82cb9ffe52908767a94961dbaf758458c38e3cf9 100644 (file)
@@ -629,7 +629,7 @@ static int pxa168fb_probe(struct platform_device *pdev)
        fbi = info->par;
        fbi->info = info;
        fbi->clk = clk;
-       fbi->dev = info->dev = &pdev->dev;
+       fbi->dev = &pdev->dev;
        fbi->panel_rbswap = mi->panel_rbswap;
        fbi->is_blanked = 0;
        fbi->active = mi->active;