Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c536abfd authored by Ohad Ben-Cohen's avatar Ohad Ben-Cohen
Browse files

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: default avatarOhad Ben-Cohen <ohad@wizery.com>
parent 93b465c2
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -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 */

/**