summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb3
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2009-09-05 20:24:24 -0700
committerRoland Dreier <rolandd@cisco.com>2009-09-05 20:24:24 -0700
commitf1aa78b26e8dabc2956be94a93c40c6cc08eb4a3 (patch)
tree16a824455bdc6533996c03784f7a45d6722a41e5 /drivers/infiniband/hw/cxgb3
parent181c74e87eb93df447a759af93cf0a279875ea7d (diff)
downloadtalos-obmc-linux-f1aa78b26e8dabc2956be94a93c40c6cc08eb4a3.tar.gz
talos-obmc-linux-f1aa78b26e8dabc2956be94a93c40c6cc08eb4a3.zip
IB: Use printk_once() for driver versions
Replace open-coded reimplementations with printk_once(). Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3')
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch.c b/drivers/infiniband/hw/cxgb3/iwch.c
index 26fc0a4eaa74..9cc99df3d614 100644
--- a/drivers/infiniband/hw/cxgb3/iwch.c
+++ b/drivers/infiniband/hw/cxgb3/iwch.c
@@ -105,11 +105,9 @@ static void rnic_init(struct iwch_dev *rnicp)
static void open_rnic_dev(struct t3cdev *tdev)
{
struct iwch_dev *rnicp;
- static int vers_printed;
PDBG("%s t3cdev %p\n", __func__, tdev);
- if (!vers_printed++)
- printk(KERN_INFO MOD "Chelsio T3 RDMA Driver - version %s\n",
+ printk_once(KERN_INFO MOD "Chelsio T3 RDMA Driver - version %s\n",
DRV_VERSION);
rnicp = (struct iwch_dev *)ib_alloc_device(sizeof(*rnicp));
if (!rnicp) {
OpenPOWER on IntegriCloud