Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: i2c: vd56g3: Use the v4l2 helper for obtaining the clock

devm_clk_get() fails on ACPI-based platforms, where firmware does not
provide a direct reference to the clock producer.

Replace devm_clk_get() with the new v4l2 helper
devm_v4l2_sensor_clk_get() that works on both DT- and ACPI-based
platforms to retrieve a reference to the clock producer from firmware.

Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Mehdi Djait and committed by
Hans Verkuil
19248489 e55df3c6

+1 -1
+1 -1
drivers/media/i2c/vd56g3.c
··· 1474 1474 if (ret) 1475 1475 return dev_err_probe(dev, ret, "Failed to get regulators\n"); 1476 1476 1477 - sensor->xclk = devm_clk_get(dev, NULL); 1477 + sensor->xclk = devm_v4l2_sensor_clk_get(dev, NULL); 1478 1478 if (IS_ERR(sensor->xclk)) 1479 1479 return dev_err_probe(dev, PTR_ERR(sensor->xclk), 1480 1480 "Failed to get xclk\n");