diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index ac3934a4b61..9563e97c04d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3256,7 +3256,7 @@ sub process { } # check the patch for use of mdelay - if ($line =~ /\bmdelay\(/) { + if ($line =~ /\bmdelay\s*\(/) { WARN("use of mdelay() found: msleep() is the preferred API.\n" . $line ); }