Skip to content

Commit

Permalink
arch/parisc: Detect primary video device from device instance
Browse files Browse the repository at this point in the history
Update fb_is_primary device() on parisc to detect the primary display
device from the Linux device instance. Aligns the code with the other
architectures. A later patch will remove the fbdev dependency from the
function's interface.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Thomas Zimmermann authored and Helge Deller committed Jan 12, 2024
1 parent b362179 commit ca6c080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/video/fbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ int fb_is_primary_device(struct fb_info *info)
return true;

/* return true if it's the default built-in framebuffer driver */
return (sti->info == info);
return (sti->dev == info->device);
}
EXPORT_SYMBOL(fb_is_primary_device);

0 comments on commit ca6c080

Please sign in to comment.