aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/au1000_eth.c
diff options
context:
space:
mode:
authorVarka Bhadram <varkabhadram@gmail.com>2014-09-11 12:50:50 +0530
committerDavid S. Miller <davem@davemloft.net>2014-09-12 18:02:41 -0400
commite9c3f99f8b176369929b44e6c80043ab1036009f (patch)
tree6aaaa30e7a7ff827938e73095a09e481c5bac6d3 /drivers/net/ethernet/amd/au1000_eth.c
parentudp: Fix inverted NAPI_GRO_CB(skb)->flush test (diff)
downloadlinux-dev-e9c3f99f8b176369929b44e6c80043ab1036009f.tar.xz
linux-dev-e9c3f99f8b176369929b44e6c80043ab1036009f.zip
ethernet: amd: use pr_info_once()
It will use pr_info_one() to print the version info of the driver in probe function only once. No need to use the static variable here. Signed-off-by: Varka Bhadram <varkab@cdac.in> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/amd/au1000_eth.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c
index 31c48a7ac2b6..6c323f4f457b 100644
--- a/drivers/net/ethernet/amd/au1000_eth.c
+++ b/drivers/net/ethernet/amd/au1000_eth.c
@@ -1140,7 +1140,6 @@ static const struct net_device_ops au1000_netdev_ops = {
static int au1000_probe(struct platform_device *pdev)
{
- static unsigned version_printed;
struct au1000_private *aup = NULL;
struct au1000_eth_platform_data *pd;
struct net_device *dev = NULL;
@@ -1371,9 +1370,8 @@ static int au1000_probe(struct platform_device *pdev)
netdev_info(dev, "Au1xx0 Ethernet found at 0x%lx, irq %d\n",
(unsigned long)base->start, irq);
- if (version_printed++ == 0)
- pr_info("%s version %s %s\n",
- DRV_NAME, DRV_VERSION, DRV_AUTHOR);
+
+ pr_info_once("%s version %s %s\n", DRV_NAME, DRV_VERSION, DRV_AUTHOR);
return 0;