]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/of/address.c
UBUNTU: SAUCE: PCI: Apply the new generic I/O management on PCI IO hosts
[mirror_ubuntu-artful-kernel.git] / drivers / of / address.c
index 3f91282672978cb253da29e291c15b5640d01399..aa9f63b1615ad3bbe7e643ee37c4ad95b3ceedbd 100644 (file)
@@ -2,6 +2,7 @@
 #define pr_fmt(fmt)    "OF: " fmt
 
 #include <linux/device.h>
+#include <linux/fwnode.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/libio.h>
@@ -324,7 +325,8 @@ int of_pci_range_to_resource(struct of_pci_range *range,
 
        if (res->flags & IORESOURCE_IO) {
                unsigned long port;
-               err = pci_register_io_range(range->cpu_addr, range->size);
+               err = pci_register_io_range(&np->fwnode, range->cpu_addr,
+                               range->size);
                if (err)
                        goto invalid_range;
                port = pci_address_to_pio(range->cpu_addr);