]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
greybus: get rid of cport_id_map_lock
authorAlex Elder <elder@linaro.org>
Mon, 17 Nov 2014 14:08:45 +0000 (08:08 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 17 Nov 2014 18:41:19 +0000 (10:41 -0800)
commit1e776f31838f1037319fe54ea7e676a8871c6603
tree3abb454c0adbc07cf4e00315575d752e75974f01
parent2c43ce49672eacd1df87df92c2ddfdb02e276be0
greybus: get rid of cport_id_map_lock

The only time we get a cport id is when setting up a new connection.
We already have a (coarser-grained) spin lock that's used to protect
the connection lists, and we can use that same lock for protecting
the hd's connection id map.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/core.c
drivers/staging/greybus/greybus.h