linux/arch/arm/plat-orion
Arnd Bergmann d43e85b7d7 ARM: orion5x: only call into phylib when available
Board code cannot call mdiobus_register_board_info() when phylib
or mdio_device is a loadable module:

arch/arm/plat-orion/common.o: In function `orion_ge00_switch_init':
:(.init.text+0x474): undefined reference to `mdiobus_register_board_info'

I had a number of ideas for how this could be solved, but after the MDIO
code got split out from PHYLIB it has gotten too hard, so I'm basically
giving up, and only call the mdiobus_register_board_info() function
if the MDIO layer is built-in to avoid the link error. This is similar
to how we handle PHY registration on other ARM platforms.

Fixes: 90eff9096c ("net: phy: Allow splitting MDIO bus/device support from PHYs")
Fixes: 648ea01340 ("net: phy: Allow pre-declaration of MDIO devices")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
2017-03-30 17:30:39 +02:00
..
include/plat ARM: orion: Register DSA switch as a MDIO device 2017-02-07 10:51:47 -05:00
common.c ARM: orion5x: only call into phylib when available 2017-03-30 17:30:39 +02:00
gpio.c ARM/orion/gpio: Replace three seq_printf() calls by seq_puts() in orion_gpio_dbg_show() 2016-10-17 17:40:24 +02:00
irq.c ARM: orion: always use MULTI_IRQ_HANDLER 2015-12-07 18:16:42 +01:00
Makefile
mpp.c ARM: orion: always use MULTI_IRQ_HANDLER 2015-12-07 18:16:42 +01:00
pcie.c
time.c ARM: orion: implement ARM delay timer 2016-01-26 23:45:05 +00:00