]> git.baikalelectronics.ru Git - kernel.git/commit
pch_gbe: Fix PTP dependencies.
authorDavid S. Miller <davem@davemloft.net>
Wed, 3 Oct 2012 02:34:04 +0000 (22:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Oct 2012 02:34:04 +0000 (22:34 -0400)
commit0399f1dbb70395ec1b582788663cc5d86ddc24fb
tree7790b9e4224b3632df75e5ef82a7e664b4413b9c
parent196e2895053b2ec6ba5062650c795c0d7d53b442
pch_gbe: Fix PTP dependencies.

The config combination:

        CONFIG_PCH_GBE=y
        CONFIG_PCH_PTP=y
        CONFIG_PTP_1588_CLOCK=m

doesn't work, because then you have a built-in kernel
object (the PCH_PTP code) referring to symbols in a
module (PTP_1588_CLOCK).

Fix this like IXGBE, by using "select PTP_1588_CLOCK"
instead of a "depends on".

Reported-by: Haicheng Li <haicheng.li@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/oki-semi/pch_gbe/Kconfig