1 // SPDX-License-Identifier: GPL-2.0 2 3 #include <linux/console.h> 4 #include <linux/device.h> 5 #include <linux/module.h> 6 7 #include <asm/prom.h> 8 #include <asm/video.h> 9 10 bool video_is_primary_device(struct device *dev) 11 { 12 struct device_node *node = dev->of_node; 13 14 if (console_set_on_cmdline) 15 return false; 16 17 if (node && node == of_console_device) 18 return true; 19 20 return false; 21 } 22 EXPORT_SYMBOL(video_is_primary_device); 23 24 MODULE_DESCRIPTION("Sparc video helpers"); 25 MODULE_LICENSE("GPL"); 26
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.