hwspinlock/core: simplify 'owner' handling
[firefly-linux-kernel-4.4.55.git] / drivers / hwspinlock / hwspinlock_internal.h
index 69935e6b93e526ab4c8b2d94fa9655dda152b7e5..fb25830c2ee7c573abd748e6e022309a0104c6ba 100644 (file)
@@ -44,10 +44,9 @@ struct hwspinlock_ops {
  * @ops: platform-specific hwspinlock handlers
  * @id: a global, unique, system-wide, index of the lock.
  * @lock: initialized and used by hwspinlock core
- * @owner: underlying implementation module, used to maintain module ref count
  *
  * Note: currently simplicity was opted for, but later we can squeeze some
- * memory bytes by grouping the dev, ops and owner members in a single
+ * memory bytes by grouping dev, ops in a single
  * per-platform struct, and have all hwspinlocks point at it.
  */
 struct hwspinlock {
@@ -55,7 +54,6 @@ struct hwspinlock {
        const struct hwspinlock_ops *ops;
        int id;
        spinlock_t lock;
-       struct module *owner;
 };
 
 #endif /* __HWSPINLOCK_HWSPINLOCK_H */