aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwspinlock/hwspinlock_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwspinlock/hwspinlock_core.c')
-rw-r--r--drivers/hwspinlock/hwspinlock_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwspinlock/hwspinlock_core.c b/drivers/hwspinlock/hwspinlock_core.c
index af5175c5d5f4..4eb85b4a320e 100644
--- a/drivers/hwspinlock/hwspinlock_core.c
+++ b/drivers/hwspinlock/hwspinlock_core.c
@@ -282,6 +282,8 @@ int hwspin_lock_register(struct hwspinlock *hwlock)
282 spin_lock(&hwspinlock_tree_lock); 282 spin_lock(&hwspinlock_tree_lock);
283 283
284 ret = radix_tree_insert(&hwspinlock_tree, hwlock->id, hwlock); 284 ret = radix_tree_insert(&hwspinlock_tree, hwlock->id, hwlock);
285 if (ret == -EEXIST)
286 pr_err("hwspinlock id %d already exists!\n", hwlock->id);
285 if (ret) 287 if (ret)
286 goto out; 288 goto out;
287 289