diff options
-rw-r--r-- | drivers/net/fsl_pq_mdio.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/fsl_pq_mdio.c b/drivers/net/fsl_pq_mdio.c index 6be36b9bc31b..b3079a5a7f2b 100644 --- a/drivers/net/fsl_pq_mdio.c +++ b/drivers/net/fsl_pq_mdio.c | |||
@@ -194,11 +194,15 @@ static int *create_irq_map(struct device_node *np) | |||
194 | 194 | ||
195 | void fsl_pq_mdio_bus_name(char *name, struct device_node *np) | 195 | void fsl_pq_mdio_bus_name(char *name, struct device_node *np) |
196 | { | 196 | { |
197 | const u32 *reg; | 197 | const u32 *addr; |
198 | u64 taddr = OF_BAD_ADDR; | ||
198 | 199 | ||
199 | reg = of_get_property(np, "reg", NULL); | 200 | addr = of_get_address(np, 0, NULL, NULL); |
201 | if (addr) | ||
202 | taddr = of_translate_address(np, addr); | ||
200 | 203 | ||
201 | snprintf(name, MII_BUS_ID_SIZE, "%s@%x", np->name, reg ? *reg : 0); | 204 | snprintf(name, MII_BUS_ID_SIZE, "%s@%llx", np->name, |
205 | (unsigned long long)taddr); | ||
202 | } | 206 | } |
203 | 207 | ||
204 | /* Scan the bus in reverse, looking for an empty spot */ | 208 | /* Scan the bus in reverse, looking for an empty spot */ |