ar71xx: ag71xx_phy: Fix compilation for debug messages
authorDaniel F. Dickinson <cshored@thecshore.com>
Wed, 25 Jul 2018 23:14:26 +0000 (19:14 -0400)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:47:38 +0000 (17:47 +0100)
commit4a58fb64b3ceddf5bd869284f8bd5f0d2364445e
treeed25fdb2317ae9172f8abfaec82b7bdb92662b9c
parentf2fd5e3f4677e141af5ebd6408879b945a3577cf
ar71xx: ag71xx_phy: Fix compilation for debug messages

NB: Error only appears with ag71xx debug messages and dynamic printk
enabled.  This is probably why no one has caught it before.

Previously phy probe debug messages used old (now wrong) functions
to get the phy name for printing.  There was also the chance of
a NULL pointer in the event no phy_device was found.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from 2655fbe8efb2a596aa8db92cffa817e3bf0c64ea)
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c