Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7ffe19a authored by Bjorn Helgaas's avatar Bjorn Helgaas
Browse files

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: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 7f0d21f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;