From 52f24238046ca28085f6de946d0358e5c7c7cbe8 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 10 May 2020 11:40:00 -0600 Subject: common: Drop bootstage.h from common header Move this fairly uncommon header out of the common header. Signed-off-by: Simon Glass --- lib/time.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/time.c') diff --git a/lib/time.c b/lib/time.c index 75de48f9003..1395f28715c 100644 --- a/lib/time.c +++ b/lib/time.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include -- cgit v1.2.3 From 691d719db7183dfb1d1360efed4c5e9f6899095f Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 10 May 2020 11:40:02 -0600 Subject: common: Drop init.h from common header Move this uncommon header out of the common header. Signed-off-by: Simon Glass --- lib/time.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/time.c') diff --git a/lib/time.c b/lib/time.c index 1395f28715c..3d6447d7c0a 100644 --- a/lib/time.c +++ b/lib/time.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3 From 07e1114671c8b13d1bb90548a3c5ea31c49415d1 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 10 May 2020 11:40:10 -0600 Subject: Fix some checkpatch warnings in calls to udelay() Fix up some incorrect code style in calls to functions in the linux/time.h header, mostly udelay(). Signed-off-by: Simon Glass --- lib/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/time.c') diff --git a/lib/time.c b/lib/time.c index 3d6447d7c0a..551698e36d0 100644 --- a/lib/time.c +++ b/lib/time.c @@ -183,7 +183,7 @@ void udelay(unsigned long usec) do { WATCHDOG_RESET(); kv = usec > CONFIG_WD_PERIOD ? CONFIG_WD_PERIOD : usec; - __udelay (kv); + __udelay(kv); usec -= kv; } while(usec); } -- cgit v1.2.3 From c05ed00afb95fa5237f16962fccf5810437317bf Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 10 May 2020 11:40:11 -0600 Subject: common: Drop linux/delay.h from common header Move this uncommon header out of the common header. Signed-off-by: Simon Glass --- lib/time.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/time.c') diff --git a/lib/time.c b/lib/time.c index 551698e36d0..65db0f6cda2 100644 --- a/lib/time.c +++ b/lib/time.c @@ -14,6 +14,7 @@ #include #include #include +#include #ifndef CONFIG_WD_PERIOD # define CONFIG_WD_PERIOD (10 * 1000 * 1000) /* 10 seconds default */ -- cgit v1.2.3