]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mpc5200: Fix Kconfig dependancies on MPC5200 FEC device driver
authorGrant Likely <grant.likely@secretlab.ca>
Thu, 1 Nov 2007 14:22:30 +0000 (08:22 -0600)
committerJeff Garzik <jeff@garzik.org>
Thu, 1 Nov 2007 20:04:45 +0000 (16:04 -0400)
When not building an arch/powerpc kernel, the mpc5200 FEC driver depends
on some symbols which are not defined (BESTCOMM & BESTCOMM_FEC).

This patch flips around the dependancy logic so that it cannot be
selected unless BESTCOMM_FEC is selected first.  Kconfig stops
complaining this way.

Also, the driver only works for arch/powerpc (not arch/ppc) anyway so
it should depend on PPC_MERGE also.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/Kconfig

index 867cb7345b5faec024468ae734f40084958d304b..5f800a6dd978083583fd8592329f43eb4f19f19d 100644 (file)
@@ -1883,9 +1883,7 @@ config FEC2
 
 config FEC_MPC52xx
        tristate "MPC52xx FEC driver"
-       depends on PPC_MPC52xx
-       select PPC_BESTCOMM
-       select PPC_BESTCOMM_FEC
+       depends on PPC_MERGE && PPC_MPC52xx && PPC_BESTCOMM_FEC
        select CRC32
        select PHYLIB
        ---help---