From 7ee453e97d536613fc409fd68cdc8fc6fe3f96ad Mon Sep 17 00:00:00 2001 From: Israel Schlesinger Date: Tue, 27 Jul 2010 10:53:32 -0700 Subject: [PATCH] checkpatch: fix regex for catching mdelay() upstream prefers this change for checkpatch: http://lkml.org/lkml/2010/7/27/254 Signed-off-by: Israel Schlesinger Change-Id: I61f8c1ff622994b37a79fed4b811115da2c108ad (cherry picked from commit 76cc4ad08fe1d8912ce44ee2cc1f10373c2974d3) --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); }