Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e519abb6 authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by Jeff Garzik
Browse files

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: default avatarLennert Buytenhek <buytenh@marvell.com>
Reviewed-by: default avatarTzachi Perelstein <tzachi@marvell.com>
Signed-off-by: default avatarDale Farnsworth <dale@farnsworth.org>
parent ec69d651
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1981,8 +1981,10 @@ 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;

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

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);