Use dentry_path() to create full path to inode object
[pohmelfs.git] / arch / x86 / video / fbdev.c
blobc5ffb6ac870773d53e15857dc50749ab661ffc1d
1 /*
2 * Copyright (C) 2007 Antonino Daplas <adaplas@gmail.com>
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file COPYING in the main directory of this archive
6 * for more details.
8 */
9 #include <linux/fb.h>
10 #include <linux/pci.h>
11 #include <linux/module.h>
13 int fb_is_primary_device(struct fb_info *info)
15 struct device *device = info->device;
16 struct pci_dev *pci_dev = NULL;
17 struct resource *res = NULL;
18 int retval = 0;
20 if (device)
21 pci_dev = to_pci_dev(device);
23 if (pci_dev)
24 res = &pci_dev->resource[PCI_ROM_RESOURCE];
26 if (res && res->flags & IORESOURCE_ROM_SHADOW)
27 retval = 1;
29 return retval;
31 EXPORT_SYMBOL(fb_is_primary_device);
32 MODULE_LICENSE("GPL");