diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2023-04-17 15:56:45 +0300 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2023-04-20 11:04:58 +0300 |
commit | cf41d18b72c8b79f617c59529171faf49aa74dca (patch) | |
tree | 8e772c9ad2390c65e2dcc5b7c21ad69ac1d903f6 /drivers/video/sticore.c | |
parent | d77f0ecdac62968ec99a18deff3d91b453974b9c (diff) | |
download | linux-cf41d18b72c8b79f617c59529171faf49aa74dca.tar.xz |
arch/parisc: Implement fb_is_primary_device() under arch/parisc
Move PARISC's implementation of fb_is_primary_device() into the
architecture directory. This the place of the declaration and
where other architectures implement this function. No functional
changes.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Helge Deller <deller@gmx.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230417125651.25126-14-tzimmermann@suse.de
Diffstat (limited to 'drivers/video/sticore.c')
-rw-r--r-- | drivers/video/sticore.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/video/sticore.c b/drivers/video/sticore.c index f8aaedea437d..7eb925f2ba9c 100644 --- a/drivers/video/sticore.c +++ b/drivers/video/sticore.c @@ -30,7 +30,6 @@ #include <asm/pdc.h> #include <asm/cacheflush.h> #include <asm/grfioctl.h> -#include <asm/fb.h> #include <video/sticore.h> @@ -1148,24 +1147,6 @@ int sti_call(const struct sti_struct *sti, unsigned long func, return ret; } -#if defined(CONFIG_FB_STI) -/* check if given fb_info is the primary device */ -int fb_is_primary_device(struct fb_info *info) -{ - struct sti_struct *sti; - - sti = sti_get_rom(0); - - /* if no built-in graphics card found, allow any fb driver as default */ - if (!sti) - return true; - - /* return true if it's the default built-in framebuffer driver */ - return (sti->info == info); -} -EXPORT_SYMBOL(fb_is_primary_device); -#endif - MODULE_AUTHOR("Philipp Rumpf, Helge Deller, Thomas Bogendoerfer"); MODULE_DESCRIPTION("Core STI driver for HP's NGLE series graphics cards in HP PARISC machines"); MODULE_LICENSE("GPL v2"); |