summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier2007-05-13 17:54:18 +0200
committerRoland Dreier2007-05-13 17:54:18 +0200
commit20eebcf09c2d329e4dcdd765634c0a524195e16d (patch)
treed4044790aca3555854d90ed005a603d0fb23f1e0
parentnet: Trivial MLX4_DEBUG dependency fix. (diff)
downloadkernel-qcow2-linux-20eebcf09c2d329e4dcdd765634c0a524195e16d.tar.gz
kernel-qcow2-linux-20eebcf09c2d329e4dcdd765634c0a524195e16d.tar.xz
kernel-qcow2-linux-20eebcf09c2d329e4dcdd765634c0a524195e16d.zip
mlx4_core: Remove unused doorbell_lock
struct mlx4_priv.doorbell_lock is never used, so delete it. Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--drivers/net/mlx4/main.c2
-rw-r--r--drivers/net/mlx4/mlx4.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c
index 4debb024eaf9..20b8c0d3ced4 100644
--- a/drivers/net/mlx4/main.c
+++ b/drivers/net/mlx4/main.c
@@ -542,8 +542,6 @@ static int __devinit mlx4_setup_hca(struct mlx4_dev *dev)
struct mlx4_priv *priv = mlx4_priv(dev);
int err;
- MLX4_INIT_DOORBELL_LOCK(&priv->doorbell_lock);
-
err = mlx4_init_uar_table(dev);
if (err) {
mlx4_err(dev, "Failed to initialize "
diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h
index 9befbae3d196..3d3b6d24d8d3 100644
--- a/drivers/net/mlx4/mlx4.h
+++ b/drivers/net/mlx4/mlx4.h
@@ -275,7 +275,6 @@ struct mlx4_priv {
struct mlx4_uar driver_uar;
void __iomem *kar;
- MLX4_DECLARE_DOORBELL_LOCK(doorbell_lock)
u32 rev_id;
char board_id[MLX4_BOARD_ID_LEN];