Skip to content

Commit d55207e

Browse files
geertudavem330
authored andcommitted
net: phy: Allow compile test of GPIO consumers if !GPIOLIB
The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer functionality only, can still be compiled if GPIOLIB is not enabled. Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where appropriate. Signed-off-by: Geert Uytterhoeven <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a99790b commit d55207e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/phy/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ config MDIO_CAVIUM
9292

9393
config MDIO_GPIO
9494
tristate "GPIO lib-based bitbanged MDIO buses"
95-
depends on MDIO_BITBANG && GPIOLIB
95+
depends on MDIO_BITBANG
96+
depends on GPIOLIB || COMPILE_TEST
9697
---help---
9798
Supports GPIO lib-based MDIO busses.
9899

0 commit comments

Comments
 (0)