Browse Source

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>
Ohad Ben-Cohen 13 năm trước cách đây
mục cha
commit
c536abfdf5
1 tập tin đã thay đổi với 0 bổ sung10 xóa
  1. 0 10
      include/linux/hwspinlock.h

+ 0 - 10
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 */
 
 /**