Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157375
b: refs/heads/master
c: f1aa78b
h: refs/heads/master
i:
  157373: 3ee00ab
  157371: 943d883
  157367: a010064
  157359: caf1376
  157343: 39d973e
  157311: a73562f
v: v3
  • Loading branch information
Marcin Slusarz authored and Roland Dreier committed Sep 6, 2009
1 parent 21f9a12 commit 288a5c4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 181c74e87eb93df447a759af93cf0a279875ea7d
refs/heads/master: f1aa78b26e8dabc2956be94a93c40c6cc08eb4a3
4 changes: 1 addition & 3 deletions trunk/drivers/infiniband/hw/cxgb3/iwch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 1 addition & 5 deletions trunk/drivers/infiniband/hw/mlx4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,15 +540,11 @@ static struct device_attribute *mlx4_class_attributes[] = {

static void *mlx4_ib_add(struct mlx4_dev *dev)
{
static int mlx4_ib_version_printed;
struct mlx4_ib_dev *ibdev;
int num_ports = 0;
int i;

if (!mlx4_ib_version_printed) {
printk(KERN_INFO "%s", mlx4_ib_version);
++mlx4_ib_version_printed;
}
printk_once(KERN_INFO "%s", mlx4_ib_version);

mlx4_foreach_port(i, dev, MLX4_PORT_TYPE_IB)
num_ports++;
Expand Down
6 changes: 1 addition & 5 deletions trunk/drivers/infiniband/hw/mthca/mthca_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1215,15 +1215,11 @@ int __mthca_restart_one(struct pci_dev *pdev)
static int __devinit mthca_init_one(struct pci_dev *pdev,
const struct pci_device_id *id)
{
static int mthca_version_printed = 0;
int ret;

mutex_lock(&mthca_device_mutex);

if (!mthca_version_printed) {
printk(KERN_INFO "%s", mthca_version);
++mthca_version_printed;
}
printk_once(KERN_INFO "%s", mthca_version);

if (id->driver_data >= ARRAY_SIZE(mthca_hca_table)) {
printk(KERN_ERR PFX "%s has invalid driver data %lx\n",
Expand Down

0 comments on commit 288a5c4

Please sign in to comment.