mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
PCI: Use "unsigned long" for __pci_enable_device_flags to match ioport.h
__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>
This commit is contained in:
parent
7f0d21f937
commit
f7ffe19a6f
@ -1157,7 +1157,7 @@ int pci_reenable_device(struct pci_dev *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int __pci_enable_device_flags(struct pci_dev *dev,
|
static int __pci_enable_device_flags(struct pci_dev *dev,
|
||||||
resource_size_t flags)
|
unsigned long flags)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
int i, bars = 0;
|
int i, bars = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user