staging: media: atomisp: replace msleep() with fsleep() in atomisp-gc2235.c

Replace msleep(5) with fsleep(5000) to avoid sleeping longer than
necessary. msleep() with values less than 20ms may sleep for up to
20ms due to timer granularity. fsleep() selects the appropriate sleep
function automatically.

Signed-off-by: Oskar Ray-Frayssinet <rayfraytech@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
Oskar Ray-Frayssinet 2026-03-10 16:03:14 +01:00 committed by Sakari Ailus
parent 12ea582820
commit f6f729763c

View File

@ -433,7 +433,7 @@ static int power_up(struct v4l2_subdev *sd)
goto fail_power;
}
msleep(5);
fsleep(5000);
return 0;
fail_clk: