From: Laurent Pinchart Date: Tue, 12 Aug 2025 21:45:16 +0000 (+0300) Subject: media: i2c: mt9v111: Do not set clock rate manually X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f14eb6a9aa132eb07460bccac7bb74bc379a8b41;p=users%2Fhch%2Fmisc.git media: i2c: mt9v111: Do not set clock rate manually The driver retrieves the rate of the external at probe time, and then reprograms that clock with the same rate when powering on the device. Setting the clock rate is not needed, drop it. Signed-off-by: Laurent Pinchart Signed-off-by: Sakari Ailus Reviewed-by: Mehdi Djait Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/i2c/mt9v111.c b/drivers/media/i2c/mt9v111.c index 9d724a7cd2f5..b4f2703faa18 100644 --- a/drivers/media/i2c/mt9v111.c +++ b/drivers/media/i2c/mt9v111.c @@ -365,8 +365,6 @@ static int __mt9v111_power_on(struct v4l2_subdev *sd) if (ret) return ret; - clk_set_rate(mt9v111->clk, mt9v111->sysclk); - gpiod_set_value(mt9v111->standby, 0); usleep_range(500, 1000);