summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-07-11 21:55:20 -0400
committerTom Rini <trini@konsulko.com>2018-07-11 21:55:20 -0400
commit1612ff0dfba57b1002d8c7a54778eb553ace98f4 (patch)
tree53ef12c867f9f62ae488a173698262199838b184 /drivers
parent1703fbefd9183fffd76f4744a73f5ca9daef6313 (diff)
parentc38abed5093a486d6349fc0d9d7a663f24965d78 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-mips
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpu/bmips_cpu.c2
-rw-r--r--drivers/led/led_bcm6328.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpu/bmips_cpu.c b/drivers/cpu/bmips_cpu.c
index f5bacd2b18..78560b0fb4 100644
--- a/drivers/cpu/bmips_cpu.c
+++ b/drivers/cpu/bmips_cpu.c
@@ -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;
diff --git a/drivers/led/led_bcm6328.c b/drivers/led/led_bcm6328.c
index a29e5a02c0..7be4badbac 100644
--- a/drivers/led/led_bcm6328.c
+++ b/drivers/led/led_bcm6328.c
@@ -173,7 +173,7 @@ static int bcm6328_led_probe(struct udevice *dev)
struct bcm6328_led_priv *priv = dev_get_priv(dev);
unsigned int pin;
- priv->regs = dev_remap_addr(dev);
+ priv->regs = dev_remap_addr(dev_get_parent(dev));
if (!priv->regs)
return -EINVAL;