media: i2c: ov7670: Use the devm_clk_get_optional() helper
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 26 Mar 2023 14:21:16 +0000 (16:21 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 11 Apr 2023 16:54:00 +0000 (18:54 +0200)
commitbb4e2e24acdf3316d18138298936c3c8aff2dbfb
tree707efafbc5971c57209adda558b807fdd25e7eec
parent5276c9df9c2ab9a43b534bfb56bdb10899cd3a22
media: i2c: ov7670: Use the devm_clk_get_optional() helper

Use devm_clk_get_optional() instead of hand writing it.
This saves some loC and improves the semantic.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov7670.c