From cda08393f81059bc2e4ce18bedb8f9a0b32a55bc Mon Sep 17 00:00:00 2001 From: Shawn Lin Date: Fri, 10 Mar 2017 11:02:15 +0800 Subject: [PATCH] PCI: rockchip: add new dev variable to indent the log Change-Id: Idc3bf972c7ab47187b115fb1d2efe7847ee82796 Signed-off-by: Shawn Lin --- drivers/pci/host/pcie-rockchip.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index c94f51e79ad4..50c0c361c4ae 100644 --- a/drivers/pci/host/pcie-rockchip.c +++ b/drivers/pci/host/pcie-rockchip.c @@ -1148,6 +1148,7 @@ static int rockchip_pcie_prog_ib_atu(struct rockchip_pcie *rockchip, static int rockchip_cfg_atu(struct rockchip_pcie *rockchip) { + struct device *dev = rockchip->dev; int offset; int err; int reg_no; @@ -1160,15 +1161,14 @@ static int rockchip_cfg_atu(struct rockchip_pcie *rockchip) (reg_no << 20), 0); if (err) { - dev_err(rockchip->dev, - "program RC mem outbound ATU failed\n"); + dev_err(dev, "program RC mem outbound ATU failed\n"); return err; } } err = rockchip_pcie_prog_ib_atu(rockchip, 2, 32 - 1, 0x0, 0); if (err) { - dev_err(rockchip->dev, "program RC mem inbound ATU failed\n"); + dev_err(dev, "program RC mem inbound ATU failed\n"); return err; } @@ -1182,8 +1182,7 @@ static int rockchip_cfg_atu(struct rockchip_pcie *rockchip) (reg_no << 20), 0); if (err) { - dev_err(rockchip->dev, - "program RC io outbound ATU failed\n"); + dev_err(dev, "program RC io outbound ATU failed\n"); return err; } } -- 2.34.1