diff options
author | Jochen Friedrich <jochen@scram.de> | 2007-11-14 15:51:01 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-14 15:51:01 -0800 |
commit | 8a856397f1b023b53907d13e742c216d90dd5034 (patch) | |
tree | 7cfc4c0409b06d3868668dfad711c17d2687875f /drivers/net/fs_enet/Kconfig | |
parent | 96a2d41a3e495734b63bff4e5dd0112741b93b38 (diff) | |
download | kernel_samsung_smdk4412-8a856397f1b023b53907d13e742c216d90dd5034.zip kernel_samsung_smdk4412-8a856397f1b023b53907d13e742c216d90dd5034.tar.gz kernel_samsung_smdk4412-8a856397f1b023b53907d13e742c216d90dd5034.tar.bz2 |
[FS_ENET]: Fix module build.
If fs_enet is build as module, on PPC_CPM_NEW_BINDING platforms
mii-fec/mii-bitbang should be build as module, as well. On other
platforms, mii-fec/mii-bitbang must be included into the main module.
Otherwise some symbols remain undefined. Additionally, fs_enet uses
libphy, so add a select PHYLIB.
Building modules, stage 2.
MODPOST 5 modules
ERROR: "fs_scc_ops" [drivers/net/fs_enet/fs_enet.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fs_enet/Kconfig')
-rw-r--r-- | drivers/net/fs_enet/Kconfig | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/fs_enet/Kconfig b/drivers/net/fs_enet/Kconfig index 2765e49..562ea68 100644 --- a/drivers/net/fs_enet/Kconfig +++ b/drivers/net/fs_enet/Kconfig @@ -2,6 +2,7 @@ config FS_ENET tristate "Freescale Ethernet Driver" depends on CPM1 || CPM2 select MII + select PHYLIB config FS_ENET_HAS_SCC bool "Chip has an SCC usable for ethernet" @@ -11,11 +12,19 @@ config FS_ENET_HAS_SCC config FS_ENET_HAS_FCC bool "Chip has an FCC usable for ethernet" depends on FS_ENET && CPM2 - select MDIO_BITBANG default y config FS_ENET_HAS_FEC bool "Chip has an FEC usable for ethernet" depends on FS_ENET && CPM1 + select FS_ENET_MDIO_FEC default y +config FS_ENET_MDIO_FEC + tristate "MDIO driver for FEC" + depends on FS_ENET && CPM1 + +config FS_ENET_MDIO_FCC + tristate "MDIO driver for FCC" + depends on FS_ENET && CPM2 + select MDIO_BITBANG |