]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/pci/host/pcie-rockchip-host.c
Merge branch 'lorenzo/pci/rockchip'
[linux.git] / drivers / pci / host / pcie-rockchip-host.c
index 388dbef8f23ef87b43cf535f5e6f79a64021d3d1..1372d270764f9e8c863007260191a27ec65b39d7 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/reset.h>
 #include <linux/regmap.h>
 
+#include "../pci.h"
 #include "pcie-rockchip.h"
 
 static void rockchip_pcie_enable_bw_int(struct rockchip_pcie *rockchip)
@@ -993,8 +994,8 @@ static int rockchip_pcie_probe(struct platform_device *pdev)
        if (err < 0)
                goto err_deinit_port;
 
-       err = of_pci_get_host_bridge_resources(dev->of_node, 0, 0xff,
-                                              &res, &io_base);
+       err = devm_of_pci_get_host_bridge_resources(dev, 0, 0xff,
+                                                   &res, &io_base);
        if (err)
                goto err_remove_irq_domain;