Commit d0e406fa authored by Christoph Muellner's avatar Christoph Muellner Committed by Anup Patel
Browse files

include: sbi: Allow direct initialization via SPIN_LOCK_INIT()



The current implementation of SPIN_LOCK_INIT() provides the spinlock
to be initialized as reference. This does not allow a direct
initialization of the spinlock object at the creation site.

Let's pass the spinlock directly instead (like Linux does as well)
and adjust all users of the macro (in fact there is only one user).

Signed-off-by: default avatarChristoph Muellner <cmuellner@linux.com>
Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
parent d4a94ea4
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment