[media] media: i2c: lm3560: fix missing unlock on error, fault handling
authorDaniel Jeong <gshark.jeong@gmail.com>
Fri, 6 Dec 2013 05:43:27 +0000 (02:43 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 9 Dec 2013 12:22:55 +0000 (10:22 -0200)
commite1c759bd3daf7a59f0d6a6fa06ca237307da7879
tree4d047cb79f78a855b35a552c6b8bdeb17c0dfef9
parentdc793175c5b532f343fe2224afd9189130da0004
[media] media: i2c: lm3560: fix missing unlock on error, fault handling

Correct reference of reading values. (rval -> reg_val)
Add the missing unlock before return from function lm3560_get_ctrl()
to avoid deadlock.
Thank you Dan Carpenter & Sakari.

Signed-off-by: Daniel Jeong <gshark.jeong@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/lm3560.c