net: phy: mdio-sun4i: don't select REGULATOR

The mdio-sun4i driver automatically selects REGULATOR and
REGULATOR_FIXED_VOLTAGE because it uses the regulator API. But a
driver selecting a subsystem increases the chance of generating
circular Kconfig dependencies, especially when other drivers depend on
the selected symbol.

Since the regulator API functions are replaced with no-ops when
REGULATOR is disabled, the driver can be built successfully even
without regulator support and so those 'select' dependencies can be
safely dropped.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Beniamino Galvani 2014-09-06 00:28:23 +02:00 committed by David S. Miller
parent 13aa3463e5
commit 97a13e5289

View file

@ -159,8 +159,6 @@ config MDIO_OCTEON
config MDIO_SUN4I config MDIO_SUN4I
tristate "Allwinner sun4i MDIO interface support" tristate "Allwinner sun4i MDIO interface support"
depends on ARCH_SUNXI depends on ARCH_SUNXI
select REGULATOR
select REGULATOR_FIXED_VOLTAGE
help help
This driver supports the MDIO interface found in the network This driver supports the MDIO interface found in the network
interface units of the Allwinner SoC that have an EMAC (A10, interface units of the Allwinner SoC that have an EMAC (A10,