3 * Copyright (C) 2007 Antonino Daplas <adaplas@gmail.com>
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file COPYING in the main directory of this archive
11 #include <linux/pci.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;
21 pci_dev = to_pci_dev(device);
24 res = &pci_dev->resource[PCI_ROM_RESOURCE];
26 if (res && res->flags & IORESOURCE_ROM_SHADOW)
31 EXPORT_SYMBOL(fb_is_primary_device);