Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: loongson32: Remove dma.h and nand.h

Since commit 7b3415f581c7 ("MIPS: Loongson32: Remove
unused platform devices"), struct plat_ls1x_dma and plat_ls1x_nand
are unused. Then, dma.h and nand.h are useless.
Therefore, remove these useless header files.

Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Keguang Zhang and committed by
Thomas Bogendoerfer
595b2c59 8a749fd1

-54
-21
arch/mips/include/asm/mach-loongson32/dma.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 - /* 3 - * Copyright (c) 2015 Zhang, Keguang <keguang.zhang@gmail.com> 4 - * 5 - * Loongson 1 NAND platform support. 6 - */ 7 - 8 - #ifndef __ASM_MACH_LOONGSON32_DMA_H 9 - #define __ASM_MACH_LOONGSON32_DMA_H 10 - 11 - #define LS1X_DMA_CHANNEL0 0 12 - #define LS1X_DMA_CHANNEL1 1 13 - #define LS1X_DMA_CHANNEL2 2 14 - 15 - struct plat_ls1x_dma { 16 - int nr_channels; 17 - }; 18 - 19 - extern struct plat_ls1x_dma ls1b_dma_pdata; 20 - 21 - #endif /* __ASM_MACH_LOONGSON32_DMA_H */
-26
arch/mips/include/asm/mach-loongson32/nand.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 - /* 3 - * Copyright (c) 2015 Zhang, Keguang <keguang.zhang@gmail.com> 4 - * 5 - * Loongson 1 NAND platform support. 6 - */ 7 - 8 - #ifndef __ASM_MACH_LOONGSON32_NAND_H 9 - #define __ASM_MACH_LOONGSON32_NAND_H 10 - 11 - #include <linux/dmaengine.h> 12 - #include <linux/mtd/partitions.h> 13 - 14 - struct plat_ls1x_nand { 15 - struct mtd_partition *parts; 16 - unsigned int nr_parts; 17 - 18 - int hold_cycle; 19 - int wait_cycle; 20 - }; 21 - 22 - extern struct plat_ls1x_nand ls1b_nand_pdata; 23 - 24 - bool ls1x_dma_filter_fn(struct dma_chan *chan, void *param); 25 - 26 - #endif /* __ASM_MACH_LOONGSON32_NAND_H */
-3
arch/mips/include/asm/mach-loongson32/platform.h
··· 8 8 9 9 #include <linux/platform_device.h> 10 10 11 - #include <dma.h> 12 - #include <nand.h> 13 - 14 11 extern struct platform_device ls1x_uart_pdev; 15 12 extern struct platform_device ls1x_eth0_pdev; 16 13 extern struct platform_device ls1x_eth1_pdev;
-2
arch/mips/loongson32/common/platform.c
··· 15 15 16 16 #include <platform.h> 17 17 #include <loongson1.h> 18 - #include <dma.h> 19 - #include <nand.h> 20 18 21 19 /* 8250/16550 compatible UART */ 22 20 #define LS1X_UART(_id) \
-2
arch/mips/loongson32/ls1b/board.c
··· 8 8 #include <linux/sizes.h> 9 9 10 10 #include <loongson1.h> 11 - #include <dma.h> 12 - #include <nand.h> 13 11 #include <platform.h> 14 12 15 13 static const struct gpio_led ls1x_gpio_leds[] __initconst = {