Skip to content

Commit ca6c080

Browse files
Thomas Zimmermannhdeller
authored andcommitted
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: Thomas Zimmermann <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent b362179 commit ca6c080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/parisc/video/fbdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ int fb_is_primary_device(struct fb_info *info)
2121
return true;
2222

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

0 commit comments

Comments
 (0)