]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: fsl-dpaa2/rtc: fix PTP dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 25 May 2018 15:37:12 +0000 (17:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 16:45:47 +0000 (18:45 +0200)
We can't select PTP_1588_CLOCK when posix timers are completely
disabled:

WARNING: unmet direct dependencies detected for PTP_1588_CLOCK
  Depends on [n]: NET [=y] && POSIX_TIMERS [=n]
  Selected by [y]:
  - FSL_DPAA2_PTP_CLOCK [=y] && STAGING [=y] && FSL_DPAA2_ETH [=y]

This adds the necessary dependency.

Fixes: 9bdf43b3d40f ("staging: fsl-dpaa2/rtc: add rtc driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/Kconfig

index cad016aee3b5e2b73e96ebd0f8c793e3bd85cd81..a4c4b83ddc9c0bf53ac8aeb444c97ead2a57c826 100644 (file)
@@ -27,7 +27,7 @@ config FSL_DPAA2_ETHSW
 
 config FSL_DPAA2_PTP_CLOCK
        tristate "Freescale DPAA2 PTP Clock"
-       depends on FSL_DPAA2_ETH
+       depends on FSL_DPAA2_ETH && POSIX_TIMERS
        select PTP_1588_CLOCK
        help
          This driver adds support for using the DPAA2 1588 timer module