[media] s5p-csis: Check return value of clk_enable/clk_set_rate
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 29 Jan 2013 09:52:29 +0000 (06:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 19:50:54 +0000 (17:50 -0200)
commit44e2b09ca468c7c91fa4bb8058fcda38f344974a
tree2b04c9fecf4ddd1b7241335b63772385e64e3d2b
parentb71b56b264ae27f32784973d15bfdfbc7df6d579
[media] s5p-csis: Check return value of clk_enable/clk_set_rate

clk_set_rate(), clk_enable() functions can fail, so check the return
values to avoid surprises. While at it use ERR_PTR() value to indicate
an invalid clock.

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-fimc/mipi-csis.c