Merge tag 'hwmon-for-v6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / arch / parisc / video / video-sti.c
blob564661e87093c18b28d7af167a873c3627806bfc
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
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>
6 */
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;
18 sti = sti_get_rom(0);
20 /* if no built-in graphics card found, allow any fb driver as default */
21 if (!sti)
22 return true;
24 /* return true if it's the default built-in framebuffer driver */
25 return (sti->dev == dev);
27 EXPORT_SYMBOL(video_is_primary_device);