]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvmdio: add select PHYLIB
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 13 Apr 2013 06:18:56 +0000 (06:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Apr 2013 20:48:06 +0000 (16:48 -0400)
commit9779c17bfd3882ffea5c0fa58ec06a217e0b562e
tree0879c49694e29b8577075d27a35e34cbc4275b32
parentb1fd2a926db6be236c5e29762ab982b545bde5eb
net: mvmdio: add select PHYLIB

The mvmdio driver uses the phylib API, so it should select the PHYLIB
symbol, otherwise, a build with mvmdio (but without mvneta) fails to
build with undefined symbols such as mdiobus_unregister, mdiobus_free,
etc.

The mvneta driver does not use the phylib API directly, so it does not
need to select PHYLIB. It already selects the mvmdio driver anyway.

Historically, this problem is due to the fact that the PHY handling
was originally part of mvneta, and was later moved to a separate
driver, without updating the Kconfig select statements
accordingly. And since there was no functional reason to use mvmdio
without mvneta, this case was not tested.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/Kconfig