aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOhad Ben-Cohen2011-09-08 21:16:17 +0300
committerOhad Ben-Cohen2011-09-21 19:45:34 +0300
commitc536abfdf5227987b8a72ff955b64e62fd58fe91 (patch)
tree7ba44299990776920e0b765916311009a6bf1e1f
parent93b465c2e186d96fb90012ba0f9372eb9952e732 (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.h10
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)
return 0;
}
-static inline int hwspin_lock_register(struct hwspinlock *hwlock)
-{
- return -ENODEV;
-}
-
-static inline struct hwspinlock *hwspin_lock_unregister(unsigned int id)
-{
- return NULL;
-}
-
#endif /* !CONFIG_HWSPINLOCK */
/**