Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-10
-10
include/linux/hwspinlock.h
··· 122 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 125 #endif /* !CONFIG_HWSPINLOCK */ 136 126 137 127 /**