[media] v4l2-clk: v4l2_clk_get() also need to find the of_fullname clock
authorJosh Wu <josh.wu@atmel.com>
Wed, 28 Oct 2015 09:48:55 +0000 (07:48 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 17 Nov 2015 17:19:52 +0000 (15:19 -0200)
commitdc51b7d015b6a5da00fd5e61a798607294e31a3d
tree65214ed726313f016e89147453777ed8662aa8ba
parent3d83078a081a2bac7639d09404d85085368c8b66
[media] v4l2-clk: v4l2_clk_get() also need to find the of_fullname clock

The soc-camera host will be probed and register a v4l2_clk, but if at
that moment, the i2c device is not available, then the registered
v4l2_clk name is an OF string not a I2C string.

So when i2c sensor probes and calls v4l2_clk_get(), it only searches a
clock with I2C string, like "1-0030".

This patch will search the clock with OF string name if no clock with
I2C string name could be found.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-clk.c
This page took 0.024322 seconds and 5 git commands to generate.