cpu: bmips: fix probe to get the address
authorPhilippe Reynes <philippe.reynes@softathome.com>
Fri, 22 Jun 2018 16:52:05 +0000 (18:52 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 11 Jul 2018 12:23:55 +0000 (14:23 +0200)
commitcef1f0c7a41226cdefec41b01868f2b4702d487c
treea72073196b8fb85b8f6ce23bd0dd684375541158
parentd0626e0b3ca76253c3c296248913f43af8125d9e
cpu: bmips: fix probe to get the address

In the device tree, the address for cpu is located in
the node "cpus", not in the cpu node (for exemple cpu@0).
So when probing cpu, the cpu address must be read in the
cpu parent.

The commit "cpu: bmips: convert to use live dt"
(sha1: c444afbbefa103d567f197393d39ec0fcca21a0c)
change this behaviour and read the address in the
cpu node when probing cpu.

We fix this by reading the address in the cpu parent.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
drivers/cpu/bmips_cpu.c