1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/console.h>
4 #include <linux/device.h>
5 #include <linux/module.h>
10 bool video_is_primary_device(struct device
*dev
)
12 struct device_node
*node
= dev
->of_node
;
14 if (console_set_on_cmdline
)
17 if (node
&& node
== of_console_device
)
22 EXPORT_SYMBOL(video_is_primary_device
);
24 MODULE_DESCRIPTION("Sparc video helpers");
25 MODULE_LICENSE("GPL");