Skip to content

Commit

Permalink
mv643xx_eth: only print banner once
Browse files Browse the repository at this point in the history
When there are multiple mv643xx_eth silicon blocks in the system,
don't print an initialisation message for each and every one of
them.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Reviewed-by: Tzachi Perelstein <tzachi@marvell.com>
Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
  • Loading branch information
Lennert Buytenhek authored and Jeff Garzik committed Apr 17, 2008
1 parent ec69d65 commit e519abb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/mv643xx_eth.c
Original file line number Diff line number Diff line change
@@ -1981,9 +1981,11 @@ static int mv643xx_eth_remove(struct platform_device *pdev)

static int mv643xx_eth_shared_probe(struct platform_device *pdev)
{
static int mv643xx_version_printed = 0;
struct resource *res;

printk(KERN_NOTICE "MV-643xx 10/100/1000 Ethernet Driver\n");
if (!mv643xx_version_printed++)
printk(KERN_NOTICE "MV-643xx 10/100/1000 Ethernet Driver\n");

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (res == NULL)

0 comments on commit e519abb

Please sign in to comment.