media: ov7670: make "xclk" clock optional
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 4 Oct 2018 21:29:03 +0000 (17:29 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 5 Oct 2018 15:04:39 +0000 (11:04 -0400)
commit786fa584eda86d6598db3b87c61dc81f68808d11
treeb9727308feffa99dbebb7ae3ce989cdf29d051ed
parent146c45ef1fec3e3217b78c5a606efe41150301ea
media: ov7670: make "xclk" clock optional

When the "xclk" clock was added, it was made mandatory. This broke the
driver on an OLPC plaform which doesn't know such clock. Make it
optional.

Tested on a OLPC XO-1 laptop.

Fixes: 0a024d634cee ("[media] ov7670: get xclk")
Cc: stable@vger.kernel.org # 4.11+
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov7670.c