]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: ccs: Don't complain about missing "clock-frequency" property
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 11 Oct 2024 10:56:44 +0000 (13:56 +0300)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 25 Apr 2025 08:15:34 +0000 (10:15 +0200)
The clock frequency is often available via the clock itself and not read
by the driver from the "clock-frequency" property. Don't complain if the
property doesn't exist.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/ccs/ccs-core.c

index 27b94a399b175aa13664742e463d1a35b0d60ae6..487bcabb4a199b7aea34fb9b512c87a2f7d04e26 100644 (file)
@@ -3123,8 +3123,6 @@ static int ccs_get_hwconfig(struct ccs_sensor *sensor, struct device *dev)
 
        rval = fwnode_property_read_u32(dev_fwnode(dev), "clock-frequency",
                                        &hwcfg->ext_clk);
-       if (rval)
-               dev_info(dev, "can't get clock-frequency\n");
 
        dev_dbg(dev, "clk %u, mode %u\n", hwcfg->ext_clk,
                hwcfg->csi_signalling_mode);