[media] media: marvell-ccic: use devm to release clk
authorLibin Yang <lbyang@marvell.com>
Tue, 5 Nov 2013 08:29:07 +0000 (05:29 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 29 Nov 2013 16:46:47 +0000 (14:46 -0200)
commitfa507e4d32bf6c35eb5fe7dbc0593ae3723c9575
treecb0162c7c5733a0c5e5dddfad1da81effcab3444
parentfe4a0f1c7d316734b4614ce626e6126bc302a4b6
[media] media: marvell-ccic: use devm to release clk

This patch uses devm to release the clks instead of releasing
manually.
And it adds enable/disable mipi_clk when getting its rate.

Signed-off-by: Libin Yang <lbyang@marvell.com>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/marvell-ccic/mmp-driver.c