Commit ca6c080e authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Helge Deller

arch/parisc: Detect primary video device from device instance

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: default avatarThomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent b3621797
...@@ -21,6 +21,6 @@ int fb_is_primary_device(struct fb_info *info) ...@@ -21,6 +21,6 @@ int fb_is_primary_device(struct fb_info *info)
return true; return true;
/* return true if it's the default built-in framebuffer driver */ /* 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); EXPORT_SYMBOL(fb_is_primary_device);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment