]> git.baikalelectronics.ru Git - kernel.git/commit
phy dp83867: Fix compilation with CONFIG_OF_MDIO=m
authorAlexander Graf <agraf@suse.de>
Mon, 16 May 2016 18:52:42 +0000 (20:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 May 2016 18:31:08 +0000 (14:31 -0400)
commitb5e85d1f494c19481c4f1e7c38671710ee153ec9
tree2013a181bb0d1dc7f0e2df42572f70f6620258d6
parent12ea0515de8ad4c4eb1a5be4be3f5a938cccaca9
phy dp83867: Fix compilation with CONFIG_OF_MDIO=m

When CONFIG_OF_MDIO is configured as module, the #define for it really
is CONFIG_OF_MDIO_MODULE, not CONFIG_OF_MDIO. So if we are compiling it
as module, the dp83867 doesn't see that OF_MDIO was selected and doesn't
read the dt rgmii parameters.

The fix is simple: Use IS_ENABLED(). It checks for both - module as well
as compiled in code.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c