diff options
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r-- | drivers/base/regmap/internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index bfc90b8547f2..0da5865df5b1 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h | |||
@@ -49,8 +49,10 @@ struct regmap_async { | |||
49 | }; | 49 | }; |
50 | 50 | ||
51 | struct regmap { | 51 | struct regmap { |
52 | struct mutex mutex; | 52 | union { |
53 | spinlock_t spinlock; | 53 | struct mutex mutex; |
54 | spinlock_t spinlock; | ||
55 | }; | ||
54 | unsigned long spinlock_flags; | 56 | unsigned long spinlock_flags; |
55 | regmap_lock lock; | 57 | regmap_lock lock; |
56 | regmap_unlock unlock; | 58 | regmap_unlock unlock; |