From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] ep93xx_eth.c general cleanup Date: Fri, 08 Jan 2010 00:53:14 -0800 (PST) Message-ID: <20100108.005314.32731548.davem@davemloft.net> References: <201001051405.31782.hartleys@visionengravers.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, buytenh@wantstofly.org To: hartleys@visionengravers.com Return-path: In-Reply-To: <201001051405.31782.hartleys@visionengravers.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: H Hartley Sweeten 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) instead of > 3) instead of and > 4) Move the ep93xx_mdio_read (and ep93xx_mdio_write) function to eliminate > the function prototype. > 5) Change all the printk( messages to pr_ 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 > Acked-by: Lennert Buytenhek Applied, thanks.