]> git.sur5r.net Git - u-boot/blobdiff - drivers/cpu/bmips_cpu.c
cpu: bmips: fix probe to get the address
[u-boot] / drivers / cpu / bmips_cpu.c
index f5bacd2b187f7c5486833e0816d9bc25f8d3ae49..78560b0fb4ffdaef01c369ae0e6709df1845cfcb 100644 (file)
@@ -407,7 +407,7 @@ int bmips_cpu_probe(struct udevice *dev)
        const struct bmips_cpu_hw *hw =
                (const struct bmips_cpu_hw *)dev_get_driver_data(dev);
 
-       priv->regs = dev_remap_addr(dev);
+       priv->regs = dev_remap_addr(dev_get_parent(dev));
        if (!priv->regs)
                return -EINVAL;