From: Otavio Salvador Date: Sun, 19 Aug 2012 04:58:29 +0000 (+0000) Subject: mxs: Only build internal Ethernet controller for i.MX28 X-Git-Tag: v2012.10-rc1~146 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=89ce53ffcd9b5dab4880ce7c01cf45b1d8039968;p=u-boot mxs: Only build internal Ethernet controller for i.MX28 The internal Ethernet controller is only available on i.MX28 processors so it needs to use CONFIG_MX28 guardian to avoid having this code called in others. Signed-off-by: Otavio Salvador Acked-by: Marek Vasut --- diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm/cpu/arm926ejs/mxs/mxs.c index c028e5ea1c..a1769fda14 100644 --- a/arch/arm/cpu/arm926ejs/mxs/mxs.c +++ b/arch/arm/cpu/arm926ejs/mxs/mxs.c @@ -246,7 +246,7 @@ int do_mx28_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) /* * Initializes on-chip ethernet controllers. */ -#ifdef CONFIG_CMD_NET +#if defined(CONFIG_MX28) && defined(CONFIG_CMD_NET) int cpu_eth_init(bd_t *bis) { struct mxs_clkctrl_regs *clkctrl_regs =