ARM: imx: mach-imx6ul: Fix allmodconfig build
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 19 Aug 2015 18:31:30 +0000 (15:31 -0300)
committerOlof Johansson <olof@lixom.net>
Fri, 21 Aug 2015 16:37:38 +0000 (09:37 -0700)
commit6be4b0da4ecf1472cb4a064c752214dcb2ba4be2
tree5e7883122b22e78b01a70da9925c7fcd93a566cb
parent443d7920a5ea454b4d46839a029fb26fd5a2cdee
ARM: imx: mach-imx6ul: Fix allmodconfig build

We should call phy_register_fixup_for_uid() only when CONFIG_PHYLIB
is built-in, otherwise we get the following link error when building
allmodconfig:

arch/arm/mach-imx/built-in.o: In function `imx6ul_init_machine':
:(.init.text+0xa714): undefined reference to `phy_register_fixup_for_uid'

This is the same approach done in mach-imx6q.c and mach-imx6sx.c.

Reported-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-imx/mach-imx6ul.c