ARM: davinci: make dm644x-evm phy fixup conditional
authorArnd Bergmann <arnd@arndb.de>
Thu, 13 Mar 2014 16:50:35 +0000 (17:50 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Mar 2014 17:19:32 +0000 (18:19 +0100)
commit4bbef1da789cbd89f57734975e6a211a42b382f5
treefec2ab81d9d9ef691202589c59767d25175239e2
parenta1628604fd03850c41163b802d8b7f8d6a110e4c
ARM: davinci: make dm644x-evm phy fixup conditional

We cannot call phy_register_fixup_for_uid() if CONFIG_PHYLIB
is not built into the kernel, and we should not enforce that
to be built into vmlinux either, because one might want to
disable the entire network stack.

This change uses a compile-time condition on CONFIG_PHYLIB
to remove the call in the cases where it cannot work.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: davinci-linux-open-source@linux.davincidsp.com
arch/arm/mach-davinci/board-dm644x-evm.c