summaryrefslogtreecommitdiff
path: root/include/linux/hwspinlock.h
diff options
context:
space:
mode:
authorOhad Ben-Cohen <ohad@wizery.com>2011-09-08 22:16:17 +0400
committerOhad Ben-Cohen <ohad@wizery.com>2011-09-21 20:45:34 +0400
commitc536abfdf5227987b8a72ff955b64e62fd58fe91 (patch)
tree7ba44299990776920e0b765916311009a6bf1e1f /include/linux/hwspinlock.h
parent93b465c2e186d96fb90012ba0f9372eb9952e732 (diff)
downloadlinux-c536abfdf5227987b8a72ff955b64e62fd58fe91.tar.xz
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>
Diffstat (limited to 'include/linux/hwspinlock.h')
-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 */
/**