netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: hartleys@visionengravers.com
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
	buytenh@wantstofly.org
Subject: Re: [PATCH] ep93xx_eth.c general cleanup
Date: Fri, 08 Jan 2010 00:53:14 -0800 (PST)	[thread overview]
Message-ID: <20100108.005314.32731548.davem@davemloft.net> (raw)
In-Reply-To: <201001051405.31782.hartleys@visionengravers.com>

From: H Hartley Sweeten <hartleys@visionengravers.com>
Date: Tue, 5 Jan 2010 14:05:31 -0700

> General cleanup of the ep93xx_eth driver.
> 
> 1) Use pr_fmt() to prefix the module name and __func__ to the error 
>    messages.
> 2) <linux/io.h> instead of <asm/io.h>
> 3) <mach/hardware.h> instead of <mach/ep93xx-regs.h> and <mach/platform.h>
> 4) Move the ep93xx_mdio_read (and ep93xx_mdio_write) function to eliminate
>    the function prototype.
> 5) Change all the printk(<level> messages to pr_<level> and remove the 
>    __func__ argument.
> 6) Use platform_get_{resource/irq} to get the platform resources and add
>    an error check.
> 7) Use resource_size() for request_mem_region() and ioremap().
> 8) Use %pM to print the MAC address at the end of the probe.
> 9) Use dev->dev_addr not data->dev_addr for the MAC argument because a
>    random address could be used if the platform does not supply one.
> 
> The message at the end of the probe is left as a printk since it displays
> cleaner without the function name that would be displayed with pr_info().
> 
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> Acked-by: Lennert Buytenhek <kernel@wantstofly.org>

Applied, thanks.

  reply	other threads:[~2010-01-08  8:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-05 21:05 [PATCH] ep93xx_eth.c general cleanup H Hartley Sweeten
2010-01-08  8:53 ` David Miller [this message]
     [not found] <BD79186B4FD85F4B8E60E381CAEE19090200ECDE@mi8nycmail19.Mi8.com>
     [not found] ` <1260984721.30093.23.camel@Joe-Laptop.home>
2009-12-16 17:44   ` [PATCH] ep93xx_eth.c: " H Hartley Sweeten
  -- strict thread matches above, loose matches on Subject: below --
2009-12-16 17:29 H Hartley Sweeten
2009-12-16 18:01 ` Lennert Buytenhek
2009-12-16 18:06   ` H Hartley Sweeten
2009-12-16 18:08     ` Lennert Buytenhek
2009-12-16 18:18       ` H Hartley Sweeten
2009-12-16 18:32         ` Lennert Buytenhek
2009-12-16 18:34           ` H Hartley Sweeten
2009-12-23 22:14             ` David Miller
2009-12-30 18:03               ` H Hartley Sweeten
2009-12-31  9:11                 ` Lennert Buytenhek

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=20100108.005314.32731548.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=buytenh@wantstofly.org \
    --cc=hartleys@visionengravers.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).