pcie-rockchip.c (3eb66e91a25497065c5322b1268cbc3953642227) pcie-rockchip.c (e2dcd20b1645a7285b304bf6b9a1a6637f0f254a)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Rockchip AXI PCIe host controller driver
4 *
5 * Copyright (c) 2016 Rockchip, Inc.
6 *
7 * Author: Shawn Lin <shawn.lin@rock-chips.com>
8 * Wenrui Li <wenrui.li@rock-chips.com>

--- 31 unchanged lines hidden (view full) ---

40 } else {
41 rockchip->mem_res =
42 platform_get_resource_byname(pdev, IORESOURCE_MEM,
43 "mem-base");
44 if (!rockchip->mem_res)
45 return -EINVAL;
46 }
47
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Rockchip AXI PCIe host controller driver
4 *
5 * Copyright (c) 2016 Rockchip, Inc.
6 *
7 * Author: Shawn Lin <shawn.lin@rock-chips.com>
8 * Wenrui Li <wenrui.li@rock-chips.com>

--- 31 unchanged lines hidden (view full) ---

40 } else {
41 rockchip->mem_res =
42 platform_get_resource_byname(pdev, IORESOURCE_MEM,
43 "mem-base");
44 if (!rockchip->mem_res)
45 return -EINVAL;
46 }
47
48 regs = platform_get_resource_byname(pdev, IORESOURCE_MEM,
49 "apb-base");
50 rockchip->apb_base = devm_ioremap_resource(dev, regs);
48 rockchip->apb_base =
49 devm_platform_ioremap_resource_byname(pdev, "apb-base");
51 if (IS_ERR(rockchip->apb_base))
52 return PTR_ERR(rockchip->apb_base);
53
54 err = rockchip_pcie_get_phys(rockchip);
55 if (err)
56 return err;
57
58 rockchip->lanes = 1;

--- 366 unchanged lines hidden ---
50 if (IS_ERR(rockchip->apb_base))
51 return PTR_ERR(rockchip->apb_base);
52
53 err = rockchip_pcie_get_phys(rockchip);
54 if (err)
55 return err;
56
57 rockchip->lanes = 1;

--- 366 unchanged lines hidden ---