]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx: fix ksz9021rn_phy_fixup
authorArnd Bergmann <arnd@arndb.de>
Thu, 16 Aug 2012 07:42:50 +0000 (07:42 +0000)
committerArnd Bergmann <arnd@arndb.de>
Thu, 23 Aug 2012 15:16:43 +0000 (17:16 +0200)
commit8c65fa368eb811628fa195c10071ce3167757867
tree58f3286577ddc7f51028c639cdc3ccae839e9fa4
parent5a1cc1edcec35a249034b3488ef29ba024b72f95
ARM: imx: fix ksz9021rn_phy_fixup

The ksz9021rn_phy_fixup and mx6q_sabrelite functions try to
set up an ethernet phy if they can. They do check whether
phylib is enabled, but unfortunately the functions can only
be called from platform code if phylib is builtin, not
if it is a module

Without this patch, building with a modular phylib results in:

arch/arm/mach-imx/mach-imx6q.c: In function 'imx6q_sabrelite_init':
arch/arm/mach-imx/mach-imx6q.c:120:5: error: 'ksz9021rn_phy_fixup' undeclared (first use in this function)
arch/arm/mach-imx/mach-imx6q.c:120:5: note: each undeclared identifier is reported only once for each function it appears in

The bug was originally reported by Artem Bityutskiy but only
partially fixed in 42cf4041 "ARM: imx6q: register phy fixup only when
CONFIG_PHYLIB is enabled".

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Cc: Artem Bityutskiy <dedekind1@gmail.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/mach-imx6q.c