]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mdio-sun4i: don't select REGULATOR
authorBeniamino Galvani <b.galvani@gmail.com>
Fri, 5 Sep 2014 22:28:23 +0000 (00:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Sep 2014 23:12:03 +0000 (16:12 -0700)
commit6b36737f50085649dff9438b55f9193b556e58fe
tree7582af5e810e492423fcc60fb789e03947d91257
parentb85cde135b9076210ebcacc32b02479c896afe41
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>
drivers/net/phy/Kconfig