]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
[media] smiapp: Get clock rate if it's not available through DT
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 29 Aug 2017 12:41:24 +0000 (09:41 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 20:24:55 +0000 (17:24 -0300)
commitde10c1619c489d1ecaf6b478ef9f5057d946a710
tree6e713267a507e7e441f836eaece07912eab1dc63
parentf689866aec08f00efc4a098d14b3a17ec8a9193b
[media] smiapp: Get clock rate if it's not available through DT

Obtain the clock rate from the clock framework if it's not available
through DT. The assumption is that the parent device (camera module)
defines the rate as clock control is a part of the power on and power off
sequences --- which are camera module specific.

Also use the clock rate from DT if no clock is provided.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/smiapp/smiapp-core.c