diff options
author | Giuseppe CAVALLARO <peppe.cavallaro@st.com> | 2012-06-07 23:25:07 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-08 09:46:48 +0400 |
commit | 33d5e332b9c5ce0bf3bfd44ca2127d1773b3f2ad (patch) | |
tree | aee97cf7c77d962610bd93c6cbabce071b36ac19 /drivers/net/ethernet/stmicro/stmmac/Kconfig | |
parent | 2d8dbb04c63e5369988f008bc4df3359c01d8812 (diff) | |
download | linux-33d5e332b9c5ce0bf3bfd44ca2127d1773b3f2ad.tar.xz |
stmmac: fix driver built w/ w/o both pci and platf modules
The commit ba27ec66ffeb78cbf fixes the Kconfig of the
driver when built as module allowing to select/unselect
the PCI and Platform modules that are not anymore mutually
exclusive. This patch fixes and guarantees that the driver
builds on all the platforms w/ w/o PCI and when select/unselect
the two stmmac supports. In case of there are some problems
on both the configuration and the pci/pltf registration the
module_init will fail.
v2: set the CONFIG_STMMAC_PLATFORM enabled by default.
I've just noticed that this can actually help on
some configurations that don't enable any STMMAC
options by default (e.g. SPEAr).
v3: change printk level when do not register the driver.
Reported-by: Fengguang Wu <wfg@linux.intel.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/Kconfig')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig index 0076f770e637..9f448279e12a 100644 --- a/drivers/net/ethernet/stmicro/stmmac/Kconfig +++ b/drivers/net/ethernet/stmicro/stmmac/Kconfig @@ -15,6 +15,7 @@ if STMMAC_ETH config STMMAC_PLATFORM bool "STMMAC Platform bus support" depends on STMMAC_ETH + default y ---help--- This selects the platform specific bus support for the stmmac device driver. This is the driver used |