summaryrefslogtreecommitdiffstats
path: root/drivers/net/enic/enic.h
diff options
context:
space:
mode:
authorVasanthy Kolluri <vkolluri@cisco.com>2010-06-24 10:50:56 +0000
committerDavid S. Miller <davem@davemloft.net>2010-06-25 20:50:23 -0700
commita7a79debcca02fbf908c0abed8d8fb25d0e51b48 (patch)
tree93651a514b16b50956b32f5665a5d896ae7b21dd /drivers/net/enic/enic.h
parent383ab92f11dd78d365ed05cf4d83ca2acc069a1f (diff)
downloadop-kernel-dev-a7a79debcca02fbf908c0abed8d8fb25d0e51b48.zip
op-kernel-dev-a7a79debcca02fbf908c0abed8d8fb25d0e51b48.tar.gz
enic: Use (netdev|dev|pr)_<level> macro helpers for logging
Replace all printk routines with the (netdev|dev|pr)_<level> macros that provide verbose logs. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Scott Feldman <scofeldm@cisco.com> Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com> Signed-off-by: Roopa Prabhu <roprabhu@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic/enic.h')
-rw-r--r--drivers/net/enic/enic.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h
index 81c2ade..3588ef5 100644
--- a/drivers/net/enic/enic.h
+++ b/drivers/net/enic/enic.h
@@ -34,7 +34,6 @@
#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver"
#define DRV_VERSION "1.4.1.1"
#define DRV_COPYRIGHT "Copyright 2008-2009 Cisco Systems, Inc"
-#define PFX DRV_NAME ": "
#define ENIC_BARS_MAX 6
@@ -130,4 +129,9 @@ struct enic {
unsigned int cq_count;
};
+static inline struct device *enic_get_dev(struct enic *enic)
+{
+ return &(enic->pdev->dev);
+}
+
#endif /* _ENIC_H_ */
OpenPOWER on IntegriCloud