Commit 46b679e3 authored by Pali Rohár's avatar Pali Rohár Committed by Stefan Roese
Browse files

arm: a37xx: pci: Find PCIe controller node by compatible instead of path

Find PCIe DT node by compatible string instead of retrieving it by using
hardcoded DT path.
Signed-off-by: default avatarPali Rohár <>
Reviewed-by: default avatarMarek Behún <>
Reviewed-by: Stefan Roese's avatarStefan Roese <>
parent a544d65f
......@@ -53,8 +53,6 @@
#define A3700_PTE_BLOCK_DEVICE \
#define PCIE_PATH "/soc/pcie@d0070000"
static struct mm_region mvebu_mem_map[MAX_MEM_MAP_REGIONS] = {
......@@ -288,7 +286,7 @@ int a3700_fdt_fix_pcie_regions(void *blob)
const u32 *ranges;
int node, len;
node = fdt_path_offset(blob, PCIE_PATH);
node = fdt_node_offset_by_compatible(blob, -1, "marvell,armada-3700-pcie");
if (node < 0)
return node;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment