[media] s5p-tv: Fix return value in sdo_probe() on error paths
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 24 Sep 2012 09:00:37 +0000 (06:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 11:33:34 +0000 (09:33 -0200)
commitcf48f56c27ecfe94fbea363db6e8e0bacbd525ed
treec6d2aab837332b754915907082c30fc7a4ac6aed
parent740ad921f8a72ed76d20c88225a2fa71e8290904
[media] s5p-tv: Fix return value in sdo_probe() on error paths

Use proper return value test for clk_get() and devm_regulator_get()
functions and propagate any errors from the clock and the regulator
subsystem to the driver core. In two cases a proper error code is
now returned rather than 0.

Reported-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-tv/sdo_drv.c