From: Sakari Ailus Date: Fri, 11 Oct 2024 10:56:44 +0000 (+0300) Subject: media: ccs: Don't complain about missing "clock-frequency" property X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5050bc60cc16ffa35a962a53271210d427a11535;p=users%2Fjedix%2Flinux-maple.git media: ccs: Don't complain about missing "clock-frequency" property 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 Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/i2c/ccs/ccs-core.c b/drivers/media/i2c/ccs/ccs-core.c index 27b94a399b175..487bcabb4a199 100644 --- a/drivers/media/i2c/ccs/ccs-core.c +++ b/drivers/media/i2c/ccs/ccs-core.c @@ -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);