diff options
Diffstat (limited to 'arch/powerpc/platforms/4xx/pci.c')
-rw-r--r-- | arch/powerpc/platforms/4xx/pci.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/4xx/pci.c b/arch/powerpc/platforms/4xx/pci.c index 5aca523551ae..e6e2adcc7b64 100644 --- a/arch/powerpc/platforms/4xx/pci.c +++ b/arch/powerpc/platforms/4xx/pci.c | |||
@@ -1399,7 +1399,6 @@ static void __init ppc_476fpe_pciex_check_link(struct ppc4xx_pciex_port *port) | |||
1399 | printk(KERN_WARNING "PCIE%d: Link up failed\n", port->index); | 1399 | printk(KERN_WARNING "PCIE%d: Link up failed\n", port->index); |
1400 | 1400 | ||
1401 | iounmap(mbase); | 1401 | iounmap(mbase); |
1402 | return; | ||
1403 | } | 1402 | } |
1404 | 1403 | ||
1405 | static struct ppc4xx_pciex_hwops ppc_476fpe_pcie_hwops __initdata = | 1404 | static struct ppc4xx_pciex_hwops ppc_476fpe_pcie_hwops __initdata = |
@@ -2081,7 +2080,6 @@ static void __init ppc4xx_probe_pciex_bridge(struct device_node *np) | |||
2081 | const u32 *pval; | 2080 | const u32 *pval; |
2082 | int portno; | 2081 | int portno; |
2083 | unsigned int dcrs; | 2082 | unsigned int dcrs; |
2084 | const char *val; | ||
2085 | 2083 | ||
2086 | /* First, proceed to core initialization as we assume there's | 2084 | /* First, proceed to core initialization as we assume there's |
2087 | * only one PCIe core in the system | 2085 | * only one PCIe core in the system |
@@ -2127,10 +2125,9 @@ static void __init ppc4xx_probe_pciex_bridge(struct device_node *np) | |||
2127 | * Resulting from this setup this PCIe port will be configured | 2125 | * Resulting from this setup this PCIe port will be configured |
2128 | * as root-complex or as endpoint. | 2126 | * as root-complex or as endpoint. |
2129 | */ | 2127 | */ |
2130 | val = of_get_property(port->node, "device_type", NULL); | 2128 | if (of_node_is_type(port->node, "pci-endpoint")) { |
2131 | if (!strcmp(val, "pci-endpoint")) { | ||
2132 | port->endpoint = 1; | 2129 | port->endpoint = 1; |
2133 | } else if (!strcmp(val, "pci")) { | 2130 | } else if (of_node_is_type(port->node, "pci")) { |
2134 | port->endpoint = 0; | 2131 | port->endpoint = 0; |
2135 | } else { | 2132 | } else { |
2136 | printk(KERN_ERR "PCIE: missing or incorrect device_type for %pOF\n", | 2133 | printk(KERN_ERR "PCIE: missing or incorrect device_type for %pOF\n", |