diff options
author | 2023-03-29 15:57:50 +0100 | |
---|---|---|
committer | 2023-04-25 08:30:18 +0100 | |
commit | 73b41dc51fbeffa4a216b20193274cfe92b5d95b (patch) | |
tree | 65568dd7c5a062435d9c10c856f0a06df5d23727 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | media: nxp: imx8-isi: Remove 300ms sleep after enabling channel (diff) | |
download | wireguard-linux-73b41dc51fbeffa4a216b20193274cfe92b5d95b.tar.xz wireguard-linux-73b41dc51fbeffa4a216b20193274cfe92b5d95b.zip |
media: ov5670: Fix probe on ACPI
devm_clk_get() will return either an error or NULL, which the driver
handles, continuing to use the clock of reading the value of the
clock-frequency property.
However, the value of ov5670->xvclk is left as-is and the other clock
framework functions aren't capable of handling error values.
Use devm_clk_get_optional() to obtain NULL instead of -ENOENT.
Fixes: 8004c91e2095 ("media: i2c: ov5670: Use common clock framework")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions