Skip to content

Commit c536abf

Browse files
committed
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>
1 parent 93b465c commit c536abf

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎include/linux/hwspinlock.h‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,6 @@ static inline int hwspin_lock_get_id(struct hwspinlock *hwlock)
122122
return 0;
123123
}
124124

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-
135125
#endif /* !CONFIG_HWSPINLOCK */
136126

137127
/**

0 commit comments

Comments
 (0)