upstream: [media] v4l: atmel-isi: Defer clock (un)preparation to enable/disable time
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 25 Nov 2013 15:21:33 +0000 (12:21 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:52:39 +0000 (11:52 +0900)
commit705eb0f13170d3d4228bf2d941ba2fe7a09fa5e0
treeaa85bcdc50e622b93d5b1f4a1594904468b1f405
parent399cfa9daaf497d276733cf8c2ff3d61a049bc01
upstream: [media] v4l: atmel-isi: Defer clock (un)preparation to enable/disable time

The PCLK and MCK clocks are prepared and unprepared at probe and remove
time. Clock (un)preparation isn't needed before enabling/disabling the
clocks, and the enable/disable operation happen in non-atomic context.
We can thus defer (un)preparation to enable/disable time.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/soc_camera/atmel-isi.c