Commit c38abed5093a486d6349fc0d9d7a663f24965d78

Authored by Philippe Reynes
Committed by Daniel Schwierzeck
1 parent cef1f0c7a4

led: bcm6328: read base address in the parent node

In the device tree, the address for the led is located
in the parent node (for exemple leds), not in the led node
(for exemple led@0).

The commit "led: bcm6328: convert to use live dt"
(sha1: 899455176058d673887a762aa38853188a030af4)
change this behaviour and read the address in the led node.

We fix this by reading the base address for led
in the parent node.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/led/led_bcm6328.c
... ... @@ -173,7 +173,7 @@
173 173 struct bcm6328_led_priv *priv = dev_get_priv(dev);
174 174 unsigned int pin;
175 175  
176   - priv->regs = dev_remap_addr(dev);
  176 + priv->regs = dev_remap_addr(dev_get_parent(dev));
177 177 if (!priv->regs)
178 178 return -EINVAL;
179 179