PCI: Use "unsigned long" for __pci_enable_device_flags to match ioport.h
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Jan 2013 19:13:15 +0000 (12:13 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Jan 2013 19:13:15 +0000 (12:13 -0700)
__pci_enable_device_flags() takes values like IORESOURCE_IO and
IORESOURCE_MEM, which are values for struct resource.flags, which is
"unsigned long", not "resource_size_t".

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c

index 5cb5820fae40147a29c79913cd1ebadcbfba1348..d574fbdbf4b0a7cacdd4ac49b9f102a468bcc2b6 100644 (file)
@@ -1157,7 +1157,7 @@ int pci_reenable_device(struct pci_dev *dev)
 }
 
 static int __pci_enable_device_flags(struct pci_dev *dev,
-                                    resource_size_t flags)
+                                    unsigned long flags)
 {
        int err;
        int i, bars = 0;