difos/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx
Koen Vandeputte d3506d1bc1 ar71xx: ag71xx: fix compile error when enabling debug
Starting from kernel 4.5, phy_id needs to be fetched from a different location.

not doing so results in this compile error:

drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c: In function 'ag71xx_phy_connect_multi':
drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c:133:35: error: 'struct mdio_device' has no member named 'phy_id'
    ag->mii_bus->mdio_map[phy_addr]->phy_id);
                                   ^
./include/linux/printk.h:137:18: note: in definition of macro 'no_printk'
    printk(fmt, ##__VA_ARGS__); \
                  ^~~~~~~~~~~
drivers/net/ethernet/atheros/ag71xx/ag71xx.h:72:27: note: in expansion of macro 'pr_debug'
 #define DBG(fmt, args...) pr_debug(fmt, ## args)
                           ^~~~~~~~
drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c:130:3: note: in expansion of macro 'DBG'
   DBG("%s: PHY found at %s, uid=%08x\n",
   ^~~
scripts/Makefile.build:326: recipe for target 'drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.o' failed

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
2019-03-05 13:19:43 +01:00
..
ag71xx.h ar71xx: fix QCA955X SGMII link loss 2018-08-08 15:48:57 +02:00
ag71xx_ar7240.c ar71xx: ag71xx: preserve port mirror flags during swconfig apply 2019-01-22 09:05:59 +01:00
ag71xx_ar8216.c ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
ag71xx_debugfs.c ar71xx: fix build with ag71xx debugfs support enabled 2018-02-28 13:57:58 +01:00
ag71xx_ethtool.c ar71xx: add missing include for checking kernel version 2018-08-22 13:11:52 +02:00
ag71xx_main.c ar71xx: ag71xx: Replace duplicate debugging code with simple function call 2018-12-17 08:03:45 +01:00
ag71xx_mdio.c ar71xx: fix mii bus irq assignment 2018-03-04 19:37:20 +01:00
ag71xx_phy.c ar71xx: ag71xx: fix compile error when enabling debug 2019-03-05 13:19:43 +01:00
Kconfig ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00
Makefile ar71xx: merge files-3.2 to files 2012-02-10 08:19:31 +00:00