drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / sparc / video / video-common.c
blob2414380caadc9c18dfaa096e223f90ad5e5288d1
1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/console.h>
4 #include <linux/device.h>
5 #include <linux/module.h>
7 #include <asm/prom.h>
8 #include <asm/video.h>
10 bool video_is_primary_device(struct device *dev)
12 struct device_node *node = dev->of_node;
14 if (console_set_on_cmdline)
15 return false;
17 if (node && node == of_console_device)
18 return true;
20 return false;
22 EXPORT_SYMBOL(video_is_primary_device);
24 MODULE_DESCRIPTION("Sparc video helpers");
25 MODULE_LICENSE("GPL");