Files
linux/drivers/media/i2c
Sakari Ailus 73b41dc51f 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: 8004c91e20 ("media: i2c: ov5670: Use common clock framework")
Signed-off-by: Sakari Ailus <[email protected]>
Reviewed-by: Jacopo Mondi <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2023-04-25 08:30:18 +01:00
..
2022-11-25 08:46:29 +00:00
…
…
2022-08-16 12:46:26 +02:00
2023-04-11 18:54:01 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
…
…
2023-03-20 16:09:38 +01:00
2022-10-27 14:48:55 +03:00
2022-08-16 12:46:26 +02:00
2022-10-28 11:31:28 +03:00
2023-04-25 08:30:18 +01:00
2022-08-16 12:46:26 +02:00
2022-08-16 12:46:26 +02:00
…
2022-08-16 12:46:26 +02:00
…