openwrt/target/linux/ar71xx
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
..
base-files ar71xx: Change led trigger from usbdev to usbport 2019-02-28 11:34:48 +01:00
files ar71xx: ag71xx: fix compile error when enabling debug 2019-03-05 13:19:43 +01:00
generic ar71xx: add support for Gainstrong MiniBox V3.2 2018-11-15 19:49:51 +01:00
image ar71xx: add rssileds for xw devices 2019-02-11 09:24:11 +01:00
mikrotik treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
nand treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
patches-4.14 kernel: bump 4.14 to 4.14.97 2019-02-01 11:41:00 +01:00
tiny ar71xx: move OCEDO Koala to generic and use dynamic partitioning 2018-10-29 11:21:23 +01:00
config-4.14 ar71xx: add support for Gainstrong MiniBox V3.2 2018-11-15 19:49:51 +01:00
Makefile treewide: use wpad-basic for not small flash targets 2018-10-16 15:07:41 +01:00
modules.mk ar71xx: add LED driver NU801 2015-12-11 15:04:57 +00:00