mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
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:
parent
12ea582820
commit
f6f729763c
|
|
@ -433,7 +433,7 @@ static int power_up(struct v4l2_subdev *sd)
|
|||
goto fail_power;
|
||||
}
|
||||
|
||||
msleep(5);
|
||||
fsleep(5000);
|
||||
return 0;
|
||||
|
||||
fail_clk:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user