]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mv643xx_eth: only print banner once
authorLennert Buytenhek <buytenh@wantstofly.org>
Tue, 18 Mar 2008 18:39:14 +0000 (11:39 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 00:06:49 +0000 (20:06 -0400)
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>
drivers/net/mv643xx_eth.c

index 39314c99520a0597b7cf0d76cf7ebb27a7427781..859b5df74acf719467db87487af459731a1e9017 100644 (file)
@@ -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)