mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Eric Bénard" <eric@eukrea.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 11/16] iim: don't try to set ethaddr when NET is not selected
Date: Thu, 17 May 2012 19:40:40 +0200	[thread overview]
Message-ID: <20120517174040.GE30400@pengutronix.de> (raw)
In-Reply-To: <1337269578-20570-11-git-send-email-eric@eukrea.com>

On Thu, May 17, 2012 at 05:46:13PM +0200, Eric Bénard wrote:
> an otther way to solve this would be to put the #ifdef CONFIG_NET
> around xxx__iim_register_fec_ethaddr in the board support but that's
> less generic.

Maybe better to provide a static inline function for
eth_register_ethaddr if !CONFIG_NET?

Sascha

> 
> Signed-off-by: Eric Bénard <eric@eukrea.com>
> ---
>  arch/arm/mach-imx/include/mach/iim.h |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-imx/include/mach/iim.h b/arch/arm/mach-imx/include/mach/iim.h
> index b97c742..61d68e3 100644
> --- a/arch/arm/mach-imx/include/mach/iim.h
> +++ b/arch/arm/mach-imx/include/mach/iim.h
> @@ -66,7 +66,9 @@ static inline int imx51_iim_register_fec_ethaddr(void)
>  	if (ret != 6)
>  		return -EINVAL;
>  
> +#ifdef CONFIG_NET
>  	eth_register_ethaddr(0, buf);
> +#endif
>  
>  	return 0;
>  }
> @@ -85,7 +87,9 @@ static inline int imx25_iim_register_fec_ethaddr(void)
>  	if (ret != 6)
>  		return -EINVAL;
>  
> +#ifdef CONFIG_NET
>  	eth_register_ethaddr(0, buf);
> +#endif
>  
>  	return 0;
>  }
> -- 
> 1.7.7.6
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-05-17 17:40 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-17 15:46 [PATCH 01/16] eukrea_cpuimx25: workaround ENGcm09152 Eric Bénard
2012-05-17 15:46 ` [PATCH 02/16] eukrea_cpuimx25: add display choice in environment Eric Bénard
2012-05-17 15:46 ` [PATCH 03/16] eukrea_cpuimx25: update defconfig Eric Bénard
2012-05-17 15:46 ` [PATCH 04/16] eukrea_cpuimx35: add display choice in environment Eric Bénard
2012-05-17 15:46 ` [PATCH 05/16] eukrea_cpuimx35: update defconfig Eric Bénard
2012-05-17 15:46 ` [PATCH 06/16] eukrea_cpuimx51: updated env Eric Bénard
2012-05-17 15:46 ` [PATCH 07/16] eukrea_cpuimx51: update defconfig Eric Bénard
2012-05-17 15:46 ` [PATCH 08/16] eukrea_cpuimx25: use switch action to launch usbserial or dfu Eric Bénard
2012-05-17 15:46 ` [PATCH 09/16] eukrea_cpuimx35: " Eric Bénard
2012-05-17 15:46 ` [PATCH 10/16] fs/tftp: depend on NET_TFTP Eric Bénard
2012-05-17 17:54   ` Sascha Hauer
2012-05-26  9:43   ` Jean-Christophe PLAGNIOL-VILLARD
2012-05-31 18:24     ` Sascha Hauer
2012-05-17 15:46 ` [PATCH 11/16] iim: don't try to set ethaddr when NET is not selected Eric Bénard
2012-05-17 17:40   ` Sascha Hauer [this message]
2012-05-17 15:46 ` [PATCH 12/16] fec_imx: restart aneg at open and not at init Eric Bénard
2012-05-17 17:36   ` Sascha Hauer
2012-05-17 19:32     ` Eric Bénard
2012-05-18  8:40       ` Sascha Hauer
2012-05-17 15:46 ` [PATCH 13/16] eukrea_cpuimx25: fix PHY address Eric Bénard
2012-05-17 15:46 ` [PATCH 14/16] eukrea_cpuimx35: " Eric Bénard
2012-05-17 17:42   ` Sascha Hauer
2012-05-17 19:33     ` Eric Bénard
2012-05-17 15:46 ` [PATCH 15/16] eukrea_cpuimx25&35: update init_board Eric Bénard
2012-05-17 15:46 ` [PATCH 16/16] eukrea_cpuimx25&35: update defconfig Eric Bénard
2012-05-17 17:45   ` Sascha Hauer
2012-05-17 19:34     ` Eric Bénard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120517174040.GE30400@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=eric@eukrea.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox