diff options
author | Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com> | 2012-07-07 13:37:42 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-07-25 04:11:12 +0100 |
commit | 1e1cdddbadc5f3044882127f3931a19f48b1a69b (patch) | |
tree | 94853dd2e3f84698f775c736ece6cabdd5845399 /include/scsi | |
parent | c4c5d62cb86eedb8aa4b87b2b8ae9f2b909b0b5b (diff) |
hwspinlock/core: use global ID to register hwspinlocks on multiple devices
commit 476a7eeb60e70ddab138e7cb4bc44ef5ac20782e upstream.
Commit 300bab9770 (hwspinlock/core: register a bank of hwspinlocks in a
single API call, 2011-09-06) introduced 'hwspin_lock_register_single()'
to register numerous (a bank of) hwspinlock instances in a single API,
'hwspin_lock_register()'.
At which time, 'hwspin_lock_register()' accidentally passes 'local IDs'
to 'hwspin_lock_register_single()', despite that ..._single() requires
'global IDs' to register hwspinlocks.
We have to convert into global IDs by supplying the missing 'base_id'.
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
[ohad: fix error path of hwspin_lock_register, too]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/scsi')
0 files changed, 0 insertions, 0 deletions