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 c49a79edae52..beb8b27d4621 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h | |||
| @@ -51,9 +51,11 @@ struct regmap_async { | |||
| 51 | struct regmap { | 51 | struct regmap { |
| 52 | union { | 52 | union { |
| 53 | struct mutex mutex; | 53 | struct mutex mutex; |
| 54 | spinlock_t spinlock; | 54 | struct { |
| 55 | spinlock_t spinlock; | ||
| 56 | unsigned long spinlock_flags; | ||
| 57 | }; | ||
| 55 | }; | 58 | }; |
| 56 | unsigned long spinlock_flags; | ||
| 57 | regmap_lock lock; | 59 | regmap_lock lock; |
| 58 | regmap_unlock unlock; | 60 | regmap_unlock unlock; |
| 59 | void *lock_arg; /* This is passed to lock/unlock functions */ | 61 | void *lock_arg; /* This is passed to lock/unlock functions */ |
