1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2000 Philipp Rumpf <prumpf@tux.org>
4 * Copyright (C) 2001-2020 Helge Deller <deller@gmx.de>
5 * Copyright (C) 2001-2002 Thomas Bogendoerfer <tsbogend@alpha.franken.de>
9 #include <linux/module.h>
11 #include <video/sticore.h>
13 int fb_is_primary_device(struct fb_info *info)
15 struct sti_struct *sti;
19 /* if no built-in graphics card found, allow any fb driver as default */
23 /* return true if it's the default built-in framebuffer driver */
24 return (sti->info == info);
26 EXPORT_SYMBOL(fb_is_primary_device);