summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2017-06-29 09:22:49 +0800
committerBjorn Helgaas <bhelgaas@google.com>2017-07-02 18:45:57 -0500
commitc2741cb6eba7ce5f59f0b7475b01ea9054fb69fe (patch)
treeee1b498c087b0e9b6a2d220144efb6c7558c4fd7
parent94b1d0896af5bf0249a4e3b049d7d4c3b502493e (diff)
downloadlinux-c2741cb6eba7ce5f59f0b7475b01ea9054fb69fe.tar.bz2
PCI: rockchip: Use local struct device pointer consistently
We have a local "struct device *dev" in rockchip_pcie_probe(). Use it consistently throughout the function. No functional change intended. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r--drivers/pci/host/pcie-rockchip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c
index 199edd533083..eb070ab2ee3f 100644
--- a/drivers/pci/host/pcie-rockchip.c
+++ b/drivers/pci/host/pcie-rockchip.c
@@ -1463,15 +1463,14 @@ static int rockchip_pcie_probe(struct platform_device *pdev)
if (err)
goto err_free_res;
- rockchip->msg_region = devm_ioremap(rockchip->dev,
- rockchip->msg_bus_addr, SZ_1M);
+ rockchip->msg_region = devm_ioremap(dev, rockchip->msg_bus_addr, SZ_1M);
if (!rockchip->msg_region) {
err = -ENOMEM;
goto err_free_res;
}
list_splice_init(&res, &bridge->windows);
- bridge->dev.parent = &pdev->dev;
+ bridge->dev.parent = dev;
bridge->sysdata = rockchip;
bridge->busnr = 0;
bridge->ops = &rockchip_pcie_ops;