aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/i2c-core.c2
-rw-r--r--drivers/infiniband/core/cm.c2
-rw-r--r--drivers/infiniband/hw/mlx4/cm.c2
-rw-r--r--drivers/pps/pps.c2
-rw-r--r--drivers/thermal/thermal_sys.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 2091ae8f539a..2421d95130d4 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -982,7 +982,7 @@ int i2c_add_numbered_adapter(struct i2c_adapter *adap)
982 982
983 if (adap->nr == -1) /* -1 means dynamically assign bus id */ 983 if (adap->nr == -1) /* -1 means dynamically assign bus id */
984 return i2c_add_adapter(adap); 984 return i2c_add_adapter(adap);
985 if (adap->nr & ~MAX_ID_MASK) 985 if (adap->nr & ~MAX_IDR_MASK)
986 return -EINVAL; 986 return -EINVAL;
987 987
988retry: 988retry:
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index d67999f6e34a..394fea2ba1bc 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -390,7 +390,7 @@ static int cm_alloc_id(struct cm_id_private *cm_id_priv)
390 ret = idr_get_new_above(&cm.local_id_table, cm_id_priv, 390 ret = idr_get_new_above(&cm.local_id_table, cm_id_priv,
391 next_id, &id); 391 next_id, &id);
392 if (!ret) 392 if (!ret)
393 next_id = ((unsigned) id + 1) & MAX_ID_MASK; 393 next_id = ((unsigned) id + 1) & MAX_IDR_MASK;
394 spin_unlock_irqrestore(&cm.lock, flags); 394 spin_unlock_irqrestore(&cm.lock, flags);
395 } while( (ret == -EAGAIN) && idr_pre_get(&cm.local_id_table, GFP_KERNEL) ); 395 } while( (ret == -EAGAIN) && idr_pre_get(&cm.local_id_table, GFP_KERNEL) );
396 396
diff --git a/drivers/infiniband/hw/mlx4/cm.c b/drivers/infiniband/hw/mlx4/cm.c
index e25e4dafb8a8..80079e5a2e30 100644
--- a/drivers/infiniband/hw/mlx4/cm.c
+++ b/drivers/infiniband/hw/mlx4/cm.c
@@ -225,7 +225,7 @@ id_map_alloc(struct ib_device *ibdev, int slave_id, u32 sl_cm_id)
225 ret = idr_get_new_above(&sriov->pv_id_table, ent, 225 ret = idr_get_new_above(&sriov->pv_id_table, ent,
226 next_id, &id); 226 next_id, &id);
227 if (!ret) { 227 if (!ret) {
228 next_id = ((unsigned) id + 1) & MAX_ID_MASK; 228 next_id = ((unsigned) id + 1) & MAX_IDR_MASK;
229 ent->pv_cm_id = (u32)id; 229 ent->pv_cm_id = (u32)id;
230 sl_id_map_add(ibdev, ent); 230 sl_id_map_add(ibdev, ent);
231 } 231 }
diff --git a/drivers/pps/pps.c b/drivers/pps/pps.c
index e771487132f7..2420d5af0583 100644
--- a/drivers/pps/pps.c
+++ b/drivers/pps/pps.c
@@ -306,7 +306,7 @@ int pps_register_cdev(struct pps_device *pps)
306 if (err < 0) 306 if (err < 0)
307 return err; 307 return err;
308 308
309 pps->id &= MAX_ID_MASK; 309 pps->id &= MAX_IDR_MASK;
310 if (pps->id >= PPS_MAX_SOURCES) { 310 if (pps->id >= PPS_MAX_SOURCES) {
311 pr_err("%s: too many PPS sources in the system\n", 311 pr_err("%s: too many PPS sources in the system\n",
312 pps->info.name); 312 pps->info.name);
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
index 67789b8345d2..efd81bb25e01 100644
--- a/drivers/thermal/thermal_sys.c
+++ b/drivers/thermal/thermal_sys.c
@@ -78,7 +78,7 @@ again:
78 else if (unlikely(err)) 78 else if (unlikely(err))
79 return err; 79 return err;
80 80
81 *id = *id & MAX_ID_MASK; 81 *id = *id & MAX_IDR_MASK;
82 return 0; 82 return 0;
83} 83}
84 84