diff options
author | Mark Brown <broonie@linaro.org> | 2013-09-30 18:11:18 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-30 18:11:18 +0100 |
commit | f004eaf4d17d205842424a7e95dcff9a46fe3c5f (patch) | |
tree | fbf213d7b933b4f58b031269a2a31b275c95be6c /lib | |
parent | abf92a3d2e868fef808d4a205371b7e5417dd0f7 (diff) | |
parent | 937433c2502f663e5a0e8804462bc38c41b9021f (diff) |
Merge remote-tracking branch 'regulator/topic/da9210' into regulator-devm
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lockref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lockref.c b/lib/lockref.c index e2cd2c0a8821..677d036cf3c7 100644 --- a/lib/lockref.c +++ b/lib/lockref.c @@ -14,8 +14,8 @@ while (likely(arch_spin_value_unlocked(old.lock.rlock.raw_lock))) { \ struct lockref new = old, prev = old; \ CODE \ - old.lock_count = cmpxchg(&lockref->lock_count, \ - old.lock_count, new.lock_count); \ + old.lock_count = cmpxchg64(&lockref->lock_count, \ + old.lock_count, new.lock_count); \ if (likely(old.lock_count == prev.lock_count)) { \ SUCCESS; \ } \ |