OSDN Git Service

ptp: ocp: Simplify Kconfig.
authorJonathan Lemon <jonathan.lemon@gmail.com>
Wed, 25 Aug 2021 21:17:33 +0000 (14:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Aug 2021 11:06:42 +0000 (12:06 +0100)
Remove the 'imply' statements, these apparently are not doing
what I expected.  Platform modules which are used by the driver
still need to be enabled in the overall config for them to be
used, but there isn't a hard dependency on them.

Use 'depend' for selectable modules which provide functions
used directly by the driver.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/Kconfig

index 32660dc..f02bedf 100644 (file)
@@ -171,16 +171,10 @@ config PTP_1588_CLOCK_OCP
        tristate "OpenCompute TimeCard as PTP clock"
        depends on PTP_1588_CLOCK
        depends on HAS_IOMEM && PCI
-       depends on SPI && I2C && MTD
+       depends on I2C && MTD
+       depends on SERIAL_8250
        depends on !S390
-       imply SPI_MEM
-       imply SPI_XILINX
-       imply MTD_SPI_NOR
-       imply I2C_XILINX
-       select SERIAL_8250
        select NET_DEVLINK
-
-       default n
        help
          This driver adds support for an OpenCompute time card.