mlx4_core: Remove unused doorbell_lock
authorRoland Dreier <rolandd@cisco.com>
Sun, 13 May 2007 15:54:18 +0000 (08:54 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 13 May 2007 15:54:18 +0000 (08:54 -0700)
struct mlx4_priv.doorbell_lock is never used, so delete it.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/main.c
drivers/net/mlx4/mlx4.h

index 4debb024eaf974d163818c4992483d44e9b5f596..20b8c0d3ced42bf4fad98df36508fc8483b429f0 100644 (file)
@@ -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 "
index 9befbae3d196698b54cc97198210cbc0385f3da4..3d3b6d24d8d3689a3116501c0baf100a8c182720 100644 (file)
@@ -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];