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>
8 #include <linux/module.h>
10 #include <video/sticore.h>
12 #include <asm/video.h>
14 bool video_is_primary_device(struct device
*dev
)
16 struct sti_struct
*sti
;
20 /* if no built-in graphics card found, allow any fb driver as default */
24 /* return true if it's the default built-in framebuffer driver */
25 return (sti
->dev
== dev
);
27 EXPORT_SYMBOL(video_is_primary_device
);