summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-08-31 20:25:16 +0200
committerMark Brown <broonie@linaro.org>2013-08-31 20:25:16 +0200
commit365c9ee0731de96046cc7749b46a5e7a0b0ceb65 (patch)
tree6ac555cb5cd296491d94216aaa3fd0e51685c0e7 /drivers/base/regmap
parentMerge remote-tracking branch 'regmap/topic/rbtree' into regmap-next (diff)
parentregmap: Provide __acquires/__releases annotations (diff)
downloadlinux-365c9ee0731de96046cc7749b46a5e7a0b0ceb65.tar.xz
linux-365c9ee0731de96046cc7749b46a5e7a0b0ceb65.zip
Merge remote-tracking branch 'regmap/topic/sparse' into regmap-next
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r--drivers/base/regmap/regmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index aaf4e1372980..7d689a15c500 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -303,6 +303,7 @@ static void regmap_unlock_mutex(void *__map)
}
static void regmap_lock_spinlock(void *__map)
+__acquires(&map->spinlock)
{
struct regmap *map = __map;
unsigned long flags;
@@ -312,6 +313,7 @@ static void regmap_lock_spinlock(void *__map)
}
static void regmap_unlock_spinlock(void *__map)
+__releases(&map->spinlock)
{
struct regmap *map = __map;
spin_unlock_irqrestore(&map->spinlock, map->spinlock_flags);