From 401d1c4f5d2d29c4bc4beaec95402ca23eb63295 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 30 Oct 2020 21:38:53 -0600 Subject: common: Drop asm/global_data.h from common header Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include at all, so remove that include. Signed-off-by: Simon Glass Signed-off-by: Tom Rini --- drivers/core/device-remove.c | 1 + drivers/core/device.c | 1 + drivers/core/fdtaddr.c | 1 + drivers/core/of_access.c | 1 + drivers/core/ofnode.c | 1 + drivers/core/read.c | 1 + drivers/core/regmap.c | 1 + drivers/core/root.c | 1 + drivers/core/uclass.c | 1 + 9 files changed, 9 insertions(+) (limited to 'drivers/core') diff --git a/drivers/core/device-remove.c b/drivers/core/device-remove.c index 7e8f3afb2d6..da1509b043a 100644 --- a/drivers/core/device-remove.c +++ b/drivers/core/device-remove.c @@ -18,6 +18,7 @@ #include #include #include +#include int device_chld_unbind(struct udevice *dev, struct driver *drv) { diff --git a/drivers/core/device.c b/drivers/core/device.c index 8629df8defb..82a00989604 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/core/fdtaddr.c b/drivers/core/fdtaddr.c index ed55f69de12..83a50b6a3a7 100644 --- a/drivers/core/fdtaddr.c +++ b/drivers/core/fdtaddr.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include diff --git a/drivers/core/of_access.c b/drivers/core/of_access.c index 0a12e9b26f8..9960e6b310b 100644 --- a/drivers/core/of_access.c +++ b/drivers/core/of_access.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index 7a5f4c0a73d..26c9d040564 100644 --- a/drivers/core/ofnode.c +++ b/drivers/core/ofnode.c @@ -16,6 +16,7 @@ #include #include #include +#include int ofnode_read_u32(ofnode node, const char *propname, u32 *outp) { diff --git a/drivers/core/read.c b/drivers/core/read.c index 4d9b5dd0384..14fd1214d62 100644 --- a/drivers/core/read.c +++ b/drivers/core/read.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c index 4baacabd015..b51ce108c14 100644 --- a/drivers/core/regmap.c +++ b/drivers/core/regmap.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/core/root.c b/drivers/core/root.c index 2bfa75b4725..26dd79dcffd 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index f38122d54b5..1a4ea7a57a6 100644 --- a/drivers/core/uclass.c +++ b/drivers/core/uclass.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3