All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot]  [PATCH 4/4] ARM Add New Board GEC2410
@ 2009-11-04  8:50 Hui.Tang
  2009-11-04 23:56 ` Ben Warren
  0 siblings, 1 reply; 2+ messages in thread
From: Hui.Tang @ 2009-11-04  8:50 UTC (permalink / raw)
  To: u-boot

Fix cs8900 dev->priv not init issue, do it as Ben Warren's suggestion.

checkpatch.pl result is

total: 0 errors, 0 warnings, 19 lines checked

0004-Fix-dev-priv-not-init-issue.patch has no obvious style problems and is ready for submission.

=========================================================
Signed-off-by: Hui.Tang <zetalabs@gmail.com>
---
 drivers/net/cs8900.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/net/cs8900.c b/drivers/net/cs8900.c
index 587f7f6..a9d1f22 100644
--- a/drivers/net/cs8900.c
+++ b/drivers/net/cs8900.c
@@ -321,15 +321,16 @@ int cs8900_initialize(u8 dev_num, int base_addr)
 	memset(priv, 0, sizeof(*priv));
 	priv->regs = (struct cs8900_regs *)base_addr;
 
-	/* Load MAC address from EEPROM */
-	cs8900_get_enetaddr(dev);
-
 	dev->iobase = base_addr;
 	dev->priv = priv;
 	dev->init = cs8900_init;
 	dev->halt = cs8900_halt;
 	dev->send = cs8900_send;
 	dev->recv = cs8900_recv;
+
+	/* Load MAC address from EEPROM */
+	cs8900_get_enetaddr(dev);
+
 	sprintf(dev->name, "%s-%hu", CS8900_DRIVERNAME, dev_num);
 
 	eth_register(dev);
-- 
1.6.0.4

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

* [U-Boot] [PATCH 4/4] ARM Add New Board GEC2410
  2009-11-04  8:50 [U-Boot] [PATCH 4/4] ARM Add New Board GEC2410 Hui.Tang
@ 2009-11-04 23:56 ` Ben Warren
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Warren @ 2009-11-04 23:56 UTC (permalink / raw)
  To: u-boot

Hui.Tang wrote:
> Fix cs8900 dev->priv not init issue, do it as Ben Warren's suggestion.
>
> checkpatch.pl result is
>
> total: 0 errors, 0 warnings, 19 lines checked
>
> 0004-Fix-dev-priv-not-init-issue.patch has no obvious style problems and is ready for submission.
>
> =========================================================
>   
This stuff should go below the '---' line so that it doesn't become part 
of the changelog.
Also, this patch has nothing to do with 'ARM Add New Board GEC2410'.  It 
should be a stand-alone patch, not part of your board submission.  
Please use a more appropriate title.
> Signed-off-by: Hui.Tang <zetalabs@gmail.com>
> ---
>  drivers/net/cs8900.c |    7 ++++---
>  1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/cs8900.c b/drivers/net/cs8900.c
> index 587f7f6..a9d1f22 100644
> --- a/drivers/net/cs8900.c
> +++ b/drivers/net/cs8900.c
> @@ -321,15 +321,16 @@ int cs8900_initialize(u8 dev_num, int base_addr)
>  	memset(priv, 0, sizeof(*priv));
>  	priv->regs = (struct cs8900_regs *)base_addr;
>  
> -	/* Load MAC address from EEPROM */
> -	cs8900_get_enetaddr(dev);
> -
>  	dev->iobase = base_addr;
>  	dev->priv = priv;
>  	dev->init = cs8900_init;
>  	dev->halt = cs8900_halt;
>  	dev->send = cs8900_send;
>  	dev->recv = cs8900_recv;
> +
> +	/* Load MAC address from EEPROM */
> +	cs8900_get_enetaddr(dev);
> +
>  	sprintf(dev->name, "%s-%hu", CS8900_DRIVERNAME, dev_num);
>  
>  	eth_register(dev);
>   
The content looks fine, but the patch metadata needs to be re-done.

regards,
Ben

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

end of thread, other threads:[~2009-11-04 23:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-04  8:50 [U-Boot] [PATCH 4/4] ARM Add New Board GEC2410 Hui.Tang
2009-11-04 23:56 ` Ben Warren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.