]> Pileus Git - ~andy/linux/commitdiff
ptp: fixup Kconfig for two PHC drivers.
authorRichard Cochran <richardcochran@gmail.com>
Thu, 1 Nov 2012 23:57:38 +0000 (23:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Nov 2012 19:37:35 +0000 (15:37 -0400)
Ben Hutchings recently came up with a better way to handle the kconfig
dependencies for the PTP hardware clocks. This patch converts one new and
one older driver to the new scheme.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/adi/Kconfig
drivers/net/ethernet/ti/Kconfig

index 175c38c077b2bcc3fe199aa7cc283eb9d1f74df2..e49c0eff040b50a95bdacc050f8ff3a83f172a8e 100644 (file)
@@ -61,7 +61,7 @@ config BFIN_RX_DESC_NUM
 
 config BFIN_MAC_USE_HWSTAMP
        bool "Use IEEE 1588 hwstamp"
-       depends on BFIN_MAC && BF518 && PTP_1588_CLOCK && !(BFIN_MAC=y && PTP_1588_CLOCK=m)
+       select PTP_1588_CLOCK
        default y
        ---help---
          To support the IEEE 1588 Precision Time Protocol (PTP), select y here
index cbc3905a0a15fa4c756080ee2bf43649684c8233..14297ff9c6dc760d5bdf261f8eb8db23880228b0 100644 (file)
@@ -62,7 +62,7 @@ config TI_CPSW
 
 config TI_CPTS
        boolean "TI Common Platform Time Sync (CPTS) Support"
-       depends on TI_CPSW && PTP_1588_CLOCK && !(TI_CPSW=y && PTP_1588_CLOCK=m)
+       select PTP_1588_CLOCK
        ---help---
          This driver supports the Common Platform Time Sync unit of
          the CPSW Ethernet Switch. The unit can time stamp PTP UDP/IPv4