]> git.karo-electronics.de Git - linux-beck.git/commit
[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)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 18 Dec 2013 08:44:24 +0000 (06:44 -0200)
commitc01d568e7f835ed429145670e8876fddff2f99ba
tree77ef36bad334e8b38036ab140f6c66bc39ab3e75
parentc52c0cbfa70c3fbdbe4d592f4e2d80a1102dfa19
[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