Merge tag 'mvebu-fixes-4.11-1' of git://git.infradead.org/linux-mvebu into fixes

mvebu fixes for 4.11 (part 1)

Fix build of the board code for orion5x when some parts are configured
as module.

* tag 'mvebu-fixes-4.11-1' of git://git.infradead.org/linux-mvebu:
ARM: orion5x: only call into phylib when available

Signed-off-by: Olof Johansson <olof@lixom.net>

Changed files
+6
arch
arm
mach-orion5x
plat-orion
+1
arch/arm/mach-orion5x/Kconfig
··· 6 6 select GPIOLIB 7 7 select MVEBU_MBUS 8 8 select PCI 9 + select PHYLIB if NETDEVICES 9 10 select PLAT_ORION_LEGACY 10 11 help 11 12 Support for the following Marvell Orion 5x series SoCs:
+5
arch/arm/plat-orion/common.c
··· 468 468 eth_data, &orion_ge11); 469 469 } 470 470 471 + #ifdef CONFIG_ARCH_ORION5X 471 472 /***************************************************************************** 472 473 * Ethernet switch 473 474 ****************************************************************************/ ··· 480 479 { 481 480 struct mdio_board_info *bd; 482 481 unsigned int i; 482 + 483 + if (!IS_BUILTIN(CONFIG_PHYLIB)) 484 + return; 483 485 484 486 for (i = 0; i < ARRAY_SIZE(d->port_names); i++) 485 487 if (!strcmp(d->port_names[i], "cpu")) ··· 497 493 498 494 mdiobus_register_board_info(&orion_ge00_switch_board_info, 1); 499 495 } 496 + #endif 500 497 501 498 /***************************************************************************** 502 499 * I2C