Skip to content

Commit

Permalink
hwspinlock/core: remove stubs for register/unregister
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ohad Ben-Cohen committed Sep 21, 2011
1 parent 93b465c commit c536abf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions include/linux/hwspinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

/**
Expand Down

0 comments on commit c536abf

Please sign in to comment.