hwspinlock/core: remove stubs for register/unregister
authorOhad Ben-Cohen <ohad@wizery.com>
Thu, 8 Sep 2011 18:16:17 +0000 (21:16 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Wed, 21 Sep 2011 16:45:34 +0000 (19:45 +0300)
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>
include/linux/hwspinlock.h

index f85cef5..c246522 100644 (file)
@@ -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 */
 
 /**