]> Git Repo - J-linux.git/blob - arch/sparc/video/fbdev.c
Merge tag 'amd-drm-next-6.5-2023-06-09' of https://gitlab.freedesktop.org/agd5f/linux...
[J-linux.git] / arch / sparc / video / fbdev.c
1 // SPDX-License-Identifier: GPL-2.0
2
3 #include <linux/console.h>
4 #include <linux/fb.h>
5 #include <linux/module.h>
6
7 #include <asm/prom.h>
8
9 int fb_is_primary_device(struct fb_info *info)
10 {
11         struct device *dev = info->device;
12         struct device_node *node;
13
14         if (console_set_on_cmdline)
15                 return 0;
16
17         node = dev->of_node;
18         if (node && node == of_console_device)
19                 return 1;
20
21         return 0;
22 }
23 EXPORT_SYMBOL(fb_is_primary_device);
This page took 0.040191 seconds and 4 git commands to generate.