-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stmmac: split to core library and probe drivers
Instead of registering the platform and PCI drivers in one module let's move necessary bits to where it belongs. During this procedure we convert the module registration part to use module_*_driver() macros which makes code simplier. >From now on the driver consists three parts: core library, PCI, and platform drivers. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Andy Shevchenko
authored and
David S. Miller
committed
Nov 11, 2014
1 parent
ba7a46f
commit b2e2f0c
Showing
6 changed files
with
25 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
obj-$(CONFIG_STMMAC_ETH) += stmmac.o | ||
stmmac-$(CONFIG_STMMAC_PCI) += stmmac_pci.o | ||
stmmac-$(CONFIG_STMMAC_PLATFORM) += stmmac_platform.o dwmac-meson.o \ | ||
dwmac-sunxi.o dwmac-sti.o \ | ||
dwmac-socfpga.o | ||
stmmac-objs:= stmmac_main.o stmmac_ethtool.o stmmac_mdio.o ring_mode.o \ | ||
chain_mode.o dwmac_lib.o dwmac1000_core.o dwmac1000_dma.o \ | ||
dwmac100_core.o dwmac100_dma.o enh_desc.o norm_desc.o \ | ||
chain_mode.o dwmac_lib.o dwmac1000_core.o dwmac1000_dma.o \ | ||
dwmac100_core.o dwmac100_dma.o enh_desc.o norm_desc.o \ | ||
mmc_core.o stmmac_hwtstamp.o stmmac_ptp.o $(stmmac-y) | ||
|
||
obj-$(CONFIG_STMMAC_PLATFORM) += stmmac-platform.o | ||
stmmac-platform-objs:= stmmac_platform.o dwmac-meson.o dwmac-sunxi.o \ | ||
dwmac-sti.o dwmac-socfpga.o | ||
|
||
obj-$(CONFIG_STMMAC_PCI) += stmmac-pci.o | ||
stmmac-pci-objs:= stmmac_pci.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters