]> www.infradead.org Git - users/hch/misc.git/commitdiff
media: i2c: mt9v111: Do not set clock rate manually
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 12 Aug 2025 21:45:16 +0000 (00:45 +0300)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 9 Sep 2025 13:59:17 +0000 (15:59 +0200)
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 <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/mt9v111.c

index 9d724a7cd2f560eeb7b799d5025ff2e4b0078f80..b4f2703faa1854a3a5e7d92ef312d01a39879a5a 100644 (file)
@@ -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);