PCI: quirks: Fix backport of quirk_io()
Commit 06cf35f9 ('PCI: Handle read-only BARs on AMD CS553x devices') added the function quirk_io() which calls pcibios_bus_to_resource(). Prior to Linux 3.14, pcibios_bus_to_resource() takes a pointer to struct pci_dev and looks up the device's bus itself, so we need to pass dev not dev->bus. Signed-off-by:Ben Hutchings <ben@decadent.org.uk>
Showing
Please register or sign in to comment