Skip to content

Commit

Permalink
PCI: Use "unsigned long" for __pci_enable_device_flags to match ioport.h
Browse files Browse the repository at this point in the history
__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>
  • Loading branch information
Bjorn Helgaas committed Jan 4, 2013
1 parent 7f0d21f commit f7ffe19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f7ffe19

Please sign in to comment.