]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0795be9810a020a47bf71c8438b02689d28fa13d
treefec2ab81d9d9ef691202589c59767d25175239e2
parent1a350247b9a6318b38dadd3fb35addc5dc3d8c4e
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