diff options
author | Ohad Ben-Cohen <ohad@wizery.com> | 2011-09-08 14:16:17 -0400 |
---|---|---|
committer | Ohad Ben-Cohen <ohad@wizery.com> | 2011-09-21 12:45:34 -0400 |
commit | c536abfdf5227987b8a72ff955b64e62fd58fe91 (patch) | |
tree | 7ba44299990776920e0b765916311009a6bf1e1f | |
parent | 93b465c2e186d96fb90012ba0f9372eb9952e732 (diff) |
hwspinlock/core: remove stubs for register/unregister
hwspinlock drivers must anyway select CONFIG_HWSPINLOCK,
so there's no point in having register/unregister stubs.
Removing those stubs will only make it easier for developers
to catch CONFIG_HWSPINLOCK mis-.config-urations.
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
-rw-r--r-- | include/linux/hwspinlock.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/hwspinlock.h b/include/linux/hwspinlock.h index f85cef5452f2..c246522a9551 100644 --- a/include/linux/hwspinlock.h +++ b/include/linux/hwspinlock.h | |||
@@ -122,16 +122,6 @@ static inline int hwspin_lock_get_id(struct hwspinlock *hwlock) | |||
122 | return 0; | 122 | return 0; |
123 | } | 123 | } |
124 | 124 | ||
125 | static inline int hwspin_lock_register(struct hwspinlock *hwlock) | ||
126 | { | ||
127 | return -ENODEV; | ||
128 | } | ||
129 | |||
130 | static inline struct hwspinlock *hwspin_lock_unregister(unsigned int id) | ||
131 | { | ||
132 | return NULL; | ||
133 | } | ||
134 | |||
135 | #endif /* !CONFIG_HWSPINLOCK */ | 125 | #endif /* !CONFIG_HWSPINLOCK */ |
136 | 126 | ||
137 | /** | 127 | /** |