phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 25 Jul 2023 15:49:27 +0000 (17:49 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 26 Jul 2023 13:39:08 +0000 (19:09 +0530)
The various StarFive PHYs are only present on StarFive SoCs.  Hence add
a dependency on ARCH_STARFIVE, to prevent asking the user about these
drivers when configuring a kernel without StarFive SoC support.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Link: https://lore.kernel.org/r/12097f6107a18e2f7cfb80f47ac7b27808e062c4.1690300076.git.geert+renesas@glider.be
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/starfive/Kconfig

index 0508f9b123e0ab3a05c1776a0dfb85db7cbf3b1c..9508e21430110ad96d3e7158230a010112f7d64b 100644 (file)
@@ -3,6 +3,8 @@
 # Phy drivers for StarFive platforms
 #
 
+if ARCH_STARFIVE || COMPILE_TEST
+
 config PHY_STARFIVE_JH7110_DPHY_RX
        tristate "StarFive JH7110 D-PHY RX support"
        depends on HAS_IOMEM
@@ -32,3 +34,5 @@ config PHY_STARFIVE_JH7110_USB
          used with the Cadence USB controller.
          If M is selected, the module will be called
          phy-jh7110-usb.ko.
+
+endif # ARCH_STARFIVE || COMPILE_TEST