From bc5c6f6f8112edeea3ee34c429e8d9acce2d9100 Mon Sep 17 00:00:00 2001 From: Hepson Sanchez Date: Wed, 10 Jul 2019 17:54:40 -0700 Subject: [PATCH] Revert "checkpatch: Add warnings for use of mdelay()" This reverts commit 3c69b66bf47198900b8dfdd5757c54abb2207a56. Change-Id: I8b9af523679763e70552a8678bde8473f5c67edd Signed-off-by: Hepson Sanchez --- scripts/checkpatch.pl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d46ba0c6264e..7a92fa8aa29f 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -5946,12 +5946,6 @@ sub process { "Comparing get_jiffies_64() is almost always wrong; prefer time_after64, time_before64 and friends\n" . $herecurr); } -# check the patch for use of mdelay - if ($line =~ /\bmdelay\s*\(/) { - WARN("MDELAY", - "use of mdelay() found: msleep() is the preferred API.\n" . $herecurr ); - } - # warn about #ifdefs in C files # if ($line =~ /^.\s*\#\s*if(|n)def/ && ($realfile =~ /\.c$/)) { # print "#ifdef in C files should be avoided\n";