bus: sunxi-rsb: unlock on error in sunxi_rsb_read()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 3 Nov 2015 22:02:44 +0000 (01:02 +0300)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 17 Nov 2015 08:40:49 +0000 (09:40 +0100)
commit43675ffafd3c3373f82691f539df3dc7403877fe
tree6a7de25fe2e538d221ab620b03ca95c213c4689c
parentc65d2359a85da9a09768c75ea6b9ed6254a7df71
bus: sunxi-rsb: unlock on error in sunxi_rsb_read()

Don't forget to unlock before returning an error code.

Fixes: d787dcdb9c8f ('bus: sunxi-rsb: Add driver for Allwinner Reduced Serial Bus')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/bus/sunxi-rsb.c