diff options
| author | Tom Rini <[email protected]> | 2025-05-21 16:51:21 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-06-02 17:26:16 -0600 |
| commit | 2266595bf893edb07331ca8464738e0d4c82c129 (patch) | |
| tree | 03788eb0bdcac71e0051a7a39d48629b1a63d92e /cmd | |
| parent | 2cf46de9b6b8463033ba4f9243643d004dc9ea5a (diff) | |
include/mtd.h: Cleanup usage
There are only a few things found in <mtd.h> today. Go through and audit
the C files which include <mtd.h> and remove it when not required. Then,
add it to the files which had either missed it or had an indirect
inclusion of it.
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/legacy-mtd-utils.c | 1 | ||||
| -rw-r--r-- | cmd/mtdparts.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/cmd/legacy-mtd-utils.c b/cmd/legacy-mtd-utils.c index 1a5271000bf..34a6da01947 100644 --- a/cmd/legacy-mtd-utils.c +++ b/cmd/legacy-mtd-utils.c @@ -4,7 +4,6 @@ #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/string.h> -#include <mtd.h> static int get_part(const char *partname, int *idx, loff_t *off, loff_t *size, loff_t *maxsize, int devtype) diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index a021b2d198d..571b79f091d 100644 --- a/cmd/mtdparts.c +++ b/cmd/mtdparts.c @@ -74,6 +74,7 @@ #include <env.h> #include <log.h> #include <malloc.h> +#include <mtd.h> #include <asm/global_data.h> #include <jffs2/load_kernel.h> #include <linux/list.h> |
