aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2023-12-20 14:22:56 +0100
committerHelge Deller <deller@gmx.de>2024-01-12 12:38:37 +0100
commitca6c080eef42e4149110f79cf73a48a6ec4e965d (patch)
tree80537ab800fd1b72ddaefa8fb0d6e4680e64fb6d
parentb362179731f0b59b8108b6afb95262ec88279759 (diff)
downloadlinux-ca6c080eef42e4149110f79cf73a48a6ec4e965d.tar.gz
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 <tzimmermann@suse.de> Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--arch/parisc/video/fbdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/video/fbdev.c b/arch/parisc/video/fbdev.c
index 137561d982460c..e4f8ac99fc9e04 100644
--- a/arch/parisc/video/fbdev.c
+++ b/arch/parisc/video/fbdev.c
@@ -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);