public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2] net: kirkwood_egiga.c: fixed build warning
@ 2009-09-09 10:29 Prafulla Wadaskar
  2009-10-05  5:55 ` Ben Warren
  0 siblings, 1 reply; 2+ messages in thread
From: Prafulla Wadaskar @ 2009-09-09 10:29 UTC (permalink / raw)
  To: u-boot

if link up detection code is disabled through config option, it gives build warning.
This patch fixes the same

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
---
Changelog:
v2: unwanted commit in v1 patch removed

 drivers/net/kirkwood_egiga.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/net/kirkwood_egiga.c b/drivers/net/kirkwood_egiga.c
index 479035d..07a86cd 100644
--- a/drivers/net/kirkwood_egiga.c
+++ b/drivers/net/kirkwood_egiga.c
@@ -400,8 +400,10 @@ static int kwgbe_init(struct eth_device *dev)
 {
 	struct kwgbe_device *dkwgbe = to_dkwgbe(dev);
 	struct kwgbe_registers *regs = dkwgbe->regs;
+#if (defined (CONFIG_MII) || defined (CONFIG_CMD_MII)) \
+	 && defined (CONFIG_SYS_FAULT_ECHO_LINK_DOWN)
 	int i;
-
+#endif
 	/* setup RX rings */
 	kwgbe_init_rx_desc_ring(dkwgbe);
 
-- 
1.5.3.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH v2] net: kirkwood_egiga.c: fixed build warning
  2009-09-09 10:29 [U-Boot] [PATCH v2] net: kirkwood_egiga.c: fixed build warning Prafulla Wadaskar
@ 2009-10-05  5:55 ` Ben Warren
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Warren @ 2009-10-05  5:55 UTC (permalink / raw)
  To: u-boot

Hi Prafulla,

Prafulla Wadaskar wrote:
> if link up detection code is disabled through config option, it gives build warning.
> This patch fixes the same
>
> Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
> ---
> Changelog:
> v2: unwanted commit in v1 patch removed
>
>  drivers/net/kirkwood_egiga.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/kirkwood_egiga.c b/drivers/net/kirkwood_egiga.c
> index 479035d..07a86cd 100644
> --- a/drivers/net/kirkwood_egiga.c
> +++ b/drivers/net/kirkwood_egiga.c
> @@ -400,8 +400,10 @@ static int kwgbe_init(struct eth_device *dev)
>  {
>  	struct kwgbe_device *dkwgbe = to_dkwgbe(dev);
>  	struct kwgbe_registers *regs = dkwgbe->regs;
> +#if (defined (CONFIG_MII) || defined (CONFIG_CMD_MII)) \
> +	 && defined (CONFIG_SYS_FAULT_ECHO_LINK_DOWN)
>  	int i;
> -
> +#endif
>  	/* setup RX rings */
>  	kwgbe_init_rx_desc_ring(dkwgbe);
>  
>   
Applied to net repo.

thanks,
Ben

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-05  5:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-09 10:29 [U-Boot] [PATCH v2] net: kirkwood_egiga.c: fixed build warning Prafulla Wadaskar
2009-10-05  5:55 ` Ben Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox