// SPDX-License-Identifier: GPL-2.0-only1/*2* Copyright (C) 2000 Philipp Rumpf <[email protected]>3* Copyright (C) 2001-2020 Helge Deller <[email protected]>4* Copyright (C) 2001-2002 Thomas Bogendoerfer <[email protected]>5*/67#include <linux/module.h>89#include <video/sticore.h>1011#include <asm/video.h>1213bool video_is_primary_device(struct device *dev)14{15struct sti_struct *sti;1617sti = sti_get_rom(0);1819/* if no built-in graphics card found, allow any fb driver as default */20if (!sti)21return true;2223/* return true if it's the default built-in framebuffer driver */24return (sti->dev == dev);25}26EXPORT_SYMBOL(video_is_primary_device);272829