Browse Source

Merge remote-tracking branch 'regmap/topic/core' into regmap-next

Mark Brown 10 years ago
parent
commit
dfdb3c4d18
1 changed files with 4 additions and 2 deletions
  1. 4 2
      drivers/base/regmap/internal.h

+ 4 - 2
drivers/base/regmap/internal.h

@@ -51,9 +51,11 @@ struct regmap_async {
 struct regmap {
 	union {
 		struct mutex mutex;
-		spinlock_t spinlock;
+		struct {
+			spinlock_t spinlock;
+			unsigned long spinlock_flags;
+		};
 	};
-	unsigned long spinlock_flags;
 	regmap_lock lock;
 	regmap_unlock unlock;
 	void *lock_arg; /* This is passed to lock/unlock functions */