net: mvpp2: fix lookup of mdio registers base address
authorBaruch Siach <baruch@tkos.co.il>
Wed, 21 Nov 2018 11:05:33 +0000 (13:05 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 24 Jan 2019 17:35:27 +0000 (11:35 -0600)
commitacce753dfb6d297c9f779dd04bb24d0004e6bc64
treee7d901ff7eb084528a9fe3cd224578d77498710d
parent7efb75b11480c46077b44df70aa30d375bf761be
net: mvpp2: fix lookup of mdio registers base address

Current mdio base lookup code relies on a 'reg' property at the upper CP
node. There is no 'reg' property there in current DT files of Armada
CP110. Use ofnode_get_addr() instead since it provides proper DT address
translation.

Cc: Ken Ma <make@marvell.com>
Cc: Stefan Chulski <stefanc@marvell.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Stefan Roese <sr@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mvpp2.c