[media] rc: img-ir: Add and enable sys clock for img-ir
authorSifan Naeem <sifan.naeem@imgtec.com>
Wed, 4 Feb 2015 16:48:14 +0000 (13:48 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 8 Apr 2015 10:55:48 +0000 (07:55 -0300)
commitcc4e8c3dc95369c08615a4151bce8506b00356d9
tree3598bea9e7a1604142165c8b407f118fb0b36a8b
parenta2bbf5d05918a3156e9854a7144a8b2806badb53
[media] rc: img-ir: Add and enable sys clock for img-ir

Gets a handle to the system clock, already described in the binding
document, and calls the appropriate common clock framework functions
to mark it prepared/enabled, the common clock framework initially
enables the clock and doesn't disable it at least until the
device/driver is removed.
It's important the systen clock is enabled before register interface is
accessed by the driver.
The system clock to IR is needed for the driver to communicate with the
IR hardware via MMIO accesses on the system bus, so it must not be
disabled during use or the driver will malfunction.

Signed-off-by: Sifan Naeem <sifan.naeem@imgtec.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/img-ir/img-ir-core.c
drivers/media/rc/img-ir/img-ir.h