diff options
author | David S. Miller <davem@davemloft.net> | 2014-12-16 14:30:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-16 15:02:23 -0500 |
commit | 6539c44d08ac2eea693b6163135169b9c8c18bb1 (patch) | |
tree | 1c879b16a0d4fd5f8b064b7beaa1f9dad516ded6 /drivers/net | |
parent | 772801ef7572f2b3e16bebceb707159ee3081ded (diff) |
net: Allow FIXED_PHY to be modular.
Otherwise we get things like:
warning: (NET_DSA_BCM_SF2 && BCMGENET && SYSTEMPORT) selects FIXED_PHY which has unmet direct dependencies (NETDEVICES && PHYLIB=y)
In order to make this work we have to rename fixed.c to fixed_phy.c
because the regulator drivers already have a module named "fixed.o".
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/Kconfig | 4 | ||||
-rw-r--r-- | drivers/net/phy/Makefile | 2 | ||||
-rw-r--r-- | drivers/net/phy/fixed_phy.c (renamed from drivers/net/phy/fixed.c) | 0 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index b4b0f804e84c..a3c251b79f38 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig | |||
@@ -119,8 +119,8 @@ config MICREL_PHY | |||
119 | Supports the KSZ9021, VSC8201, KS8001 PHYs. | 119 | Supports the KSZ9021, VSC8201, KS8001 PHYs. |
120 | 120 | ||
121 | config FIXED_PHY | 121 | config FIXED_PHY |
122 | bool "Driver for MDIO Bus/PHY emulation with fixed speed/link PHYs" | 122 | tristate "Driver for MDIO Bus/PHY emulation with fixed speed/link PHYs" |
123 | depends on PHYLIB=y | 123 | depends on PHYLIB |
124 | ---help--- | 124 | ---help--- |
125 | Adds the platform "fixed" MDIO Bus to cover the boards that use | 125 | Adds the platform "fixed" MDIO Bus to cover the boards that use |
126 | PHYs that are not connected to the real MDIO bus. | 126 | PHYs that are not connected to the real MDIO bus. |
diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile index eb3b18b5978b..501ea7699a2d 100644 --- a/drivers/net/phy/Makefile +++ b/drivers/net/phy/Makefile | |||
@@ -17,7 +17,7 @@ obj-$(CONFIG_BCM87XX_PHY) += bcm87xx.o | |||
17 | obj-$(CONFIG_ICPLUS_PHY) += icplus.o | 17 | obj-$(CONFIG_ICPLUS_PHY) += icplus.o |
18 | obj-$(CONFIG_REALTEK_PHY) += realtek.o | 18 | obj-$(CONFIG_REALTEK_PHY) += realtek.o |
19 | obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c.o | 19 | obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c.o |
20 | obj-$(CONFIG_FIXED_PHY) += fixed.o | 20 | obj-$(CONFIG_FIXED_PHY) += fixed_phy.o |
21 | obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o | 21 | obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o |
22 | obj-$(CONFIG_MDIO_GPIO) += mdio-gpio.o | 22 | obj-$(CONFIG_MDIO_GPIO) += mdio-gpio.o |
23 | obj-$(CONFIG_NATIONAL_PHY) += national.o | 23 | obj-$(CONFIG_NATIONAL_PHY) += national.o |
diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed_phy.c index 3ad0e6e16c39..3ad0e6e16c39 100644 --- a/drivers/net/phy/fixed.c +++ b/drivers/net/phy/fixed_phy.c | |||