]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: fix driver Kconfig when built as module
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Mon, 4 Jun 2012 19:22:57 +0000 (19:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jun 2012 16:34:56 +0000 (09:34 -0700)
commit42928dd1eb19636445d4723fb7a2d53deac95cf9
treebc15e2b419088346d9265507c2d3e5b1604a2e7e
parent5cce7d60af8e7b44c7674df2b248d6db9525c2d2
stmmac: fix driver Kconfig when built as module

This patches fixes the driver when built as dynamic module.
In fact, the platform part cannot be built and the probe fails
(thanks to Bob Liu that reported this bug).

v2: as D. Miller suggested, it is not necessary to make the
pci and the platform code mutually exclusive.
Having both could also help, at built time ,to verify that
all the code is validated and compiles fine.

v3: removed wrong Reviewed-by from the patch

Reported-by: Bob Liu <lliubbo@gmail.com>
cc: Rayagond Kokatanur <rayagond@vayavyalabs.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/Kconfig
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c