ibm_newemac: Fix new MAL feature handling
authorJosh Boyer <jwboyer@linux.vnet.ibm.com>
Thu, 16 Oct 2008 04:38:40 +0000 (04:38 +0000)
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>
Mon, 20 Oct 2008 23:59:54 +0000 (19:59 -0400)
commit1ff0fcfcb1a6d0a4c4d065ed230be7beae087b83
treef87ee18556af26da4b0923a7116371886e4ece70
parent878e7556bfe7b10178ea58862bf9708f35afe001
ibm_newemac: Fix new MAL feature handling

Support for new features needed by the PPC 405EZ boards
introduced some errors in the MAL and EMAC feature handling.
This broke 'allmodconfig' builds as CONFIG_PPC_DCR_NATIVE is
not set for those.

This patch fixes these errors by wrapping the code in the
appropriate #ifdefs.

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
drivers/net/ibm_newemac/core.c
drivers/net/ibm_newemac/mal.c