diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-03-18 14:39:14 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-16 20:06:49 -0400 |
commit | e519abb63d689caa2f655adae214f7e255ae2166 (patch) | |
tree | ea07fc6787a42f6032e5faa5add344789d13c57c | |
parent | ec69d651ac4fe726c870a82a2a75c7da69ddf4b9 (diff) |
mv643xx_eth: only print banner once
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>
-rw-r--r-- | drivers/net/mv643xx_eth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 39314c99520a..859b5df74acf 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c | |||
@@ -1981,9 +1981,11 @@ static int mv643xx_eth_remove(struct platform_device *pdev) | |||
1981 | 1981 | ||
1982 | static int mv643xx_eth_shared_probe(struct platform_device *pdev) | 1982 | static int mv643xx_eth_shared_probe(struct platform_device *pdev) |
1983 | { | 1983 | { |
1984 | static int mv643xx_version_printed = 0; | ||
1984 | struct resource *res; | 1985 | struct resource *res; |
1985 | 1986 | ||
1986 | printk(KERN_NOTICE "MV-643xx 10/100/1000 Ethernet Driver\n"); | 1987 | if (!mv643xx_version_printed++) |
1988 | printk(KERN_NOTICE "MV-643xx 10/100/1000 Ethernet Driver\n"); | ||
1987 | 1989 | ||
1988 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1990 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1989 | if (res == NULL) | 1991 | if (res == NULL) |