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 <trini@konsulko.com>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <malloc.h>
|
||||
#include <misc.h>
|
||||
#include <mmc.h>
|
||||
#include <mtd.h>
|
||||
#include <part.h>
|
||||
#include <tee.h>
|
||||
#include <asm/arch/stm32mp1_smc.h>
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/io.h>
|
||||
#include <jffs2/load_kernel.h>
|
||||
#include <mtd.h>
|
||||
#include <nand.h>
|
||||
#include <video.h>
|
||||
#include <video_console.h>
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <led.h>
|
||||
#include <memalign.h>
|
||||
#include <misc.h>
|
||||
#include <mtd.h>
|
||||
#include <mtd_node.h>
|
||||
#include <netdev.h>
|
||||
#include <phy.h>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <malloc.h>
|
||||
#include <mtd.h>
|
||||
#include <net.h>
|
||||
#include <status_led.h>
|
||||
#include <dm.h>
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <efi_loader.h>
|
||||
#include <init.h>
|
||||
#include <log.h>
|
||||
#include <mtd.h>
|
||||
#include <net.h>
|
||||
#include <sata.h>
|
||||
#include <ahci.h>
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <fwu.h>
|
||||
#include <fwu_mdata.h>
|
||||
#include <memalign.h>
|
||||
#include <mtd.h>
|
||||
|
||||
#include <linux/errno.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
#include <fdt_support.h>
|
||||
#include <flash.h>
|
||||
#include <log.h>
|
||||
#include <mtd.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#include <errno.h>
|
||||
#include <fdt_support.h>
|
||||
#include <flash.h>
|
||||
#include <mtd.h>
|
||||
#include <wait_bit.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <mtd/cfi_flash.h>
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <blk.h>
|
||||
#include <efi.h>
|
||||
#include <fwu_mdata.h>
|
||||
#include <mtd.h>
|
||||
#include <u-boot/uuid.h>
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Copyright (c) 2024, Linaro Limited
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <fwu.h>
|
||||
#include <fwu_mdata.h>
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Copyright (c) 2024, Linaro Limited
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <fwu.h>
|
||||
#include <fwu_mdata.h>
|
||||
#include <log.h>
|
||||
|
||||
Reference in New Issue
Block a user