greybus: interface: remove useless spinlock
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 9 Mar 2016 11:20:40 +0000 (12:20 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 10 Mar 2016 21:57:42 +0000 (13:57 -0800)
commit64acb6611f3c17251347870e73ddc106fed807cb
treec7fa5c4db75ffd4e57fb2ed1b27b513cf08940a7
parent11548c8327000302cfaaf7bcac02a3ccf14c2db1
greybus: interface: remove useless spinlock

Remove useless global interface spinlock that appeared to protect the
host-device interface list, but really did not as we are doing lock-less
look-ups by relying on the single-threaded SVC workqueue.

Document the locking assumptions.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c