summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson32
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@mips.com>2019-02-04 17:44:33 -0500
committerPaul Burton <paul.burton@mips.com>2019-02-04 17:44:33 -0500
commit62c2766cf69d910bffb59d8b6b8d77e244ded80e (patch)
tree649accf7638c7bbc2cb3b5d7fe31a27f4f893908 /arch/mips/loongson32
parentd6c2fba5e7ddea07804cd94bce575d9ad0999a5b (diff)
MIPS: Loongson32: Remove DMA & NAND devices from ls1b/board.c
Commit 7b3415f581c7 ("MIPS: Loongson32: Remove unused platform devices") removed the definitions of platform devices which have no in tree drivers from common Loongson32 code, but missed their removal from Loongson 1B board code in arch/mips/loongson32/ls1b/board.c. This causes build failures due to the missing declarations of ls1x_dma_pdev, ls1x_nand_pdev & their associated *_set_platdata functions. Remove the dead code from arch/mips/loongson32/ls1b/board.c to fix the build. Signed-off-by: Paul Burton <paul.burton@mips.com> Fixes: 7b3415f581c7 ("MIPS: Loongson32: Remove unused platform devices")
Diffstat (limited to 'arch/mips/loongson32')
-rw-r--r--arch/mips/loongson32/ls1b/board.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/mips/loongson32/ls1b/board.c b/arch/mips/loongson32/ls1b/board.c
index 01aceaace314..447b15fc0a2b 100644
--- a/arch/mips/loongson32/ls1b/board.c
+++ b/arch/mips/loongson32/ls1b/board.c
@@ -16,30 +16,6 @@
16#include <nand.h> 16#include <nand.h>
17#include <platform.h> 17#include <platform.h>
18 18
19struct plat_ls1x_dma ls1x_dma_pdata = {
20 .nr_channels = 3,
21};
22
23static struct mtd_partition ls1x_nand_parts[] = {
24 {
25 .name = "kernel",
26 .offset = 0,
27 .size = SZ_16M,
28 },
29 {
30 .name = "rootfs",
31 .offset = MTDPART_OFS_APPEND,
32 .size = MTDPART_SIZ_FULL,
33 },
34};
35
36struct plat_ls1x_nand ls1x_nand_pdata = {
37 .parts = ls1x_nand_parts,
38 .nr_parts = ARRAY_SIZE(ls1x_nand_parts),
39 .hold_cycle = 0x2,
40 .wait_cycle = 0xc,
41};
42
43static const struct gpio_led ls1x_gpio_leds[] __initconst = { 19static const struct gpio_led ls1x_gpio_leds[] __initconst = {
44 { 20 {
45 .name = "LED9", 21 .name = "LED9",
@@ -64,13 +40,11 @@ static const struct gpio_led_platform_data ls1x_led_pdata __initconst = {
64static struct platform_device *ls1b_platform_devices[] __initdata = { 40static struct platform_device *ls1b_platform_devices[] __initdata = {
65 &ls1x_uart_pdev, 41 &ls1x_uart_pdev,
66 &ls1x_cpufreq_pdev, 42 &ls1x_cpufreq_pdev,
67 &ls1x_dma_pdev,
68 &ls1x_eth0_pdev, 43 &ls1x_eth0_pdev,
69 &ls1x_eth1_pdev, 44 &ls1x_eth1_pdev,
70 &ls1x_ehci_pdev, 45 &ls1x_ehci_pdev,
71 &ls1x_gpio0_pdev, 46 &ls1x_gpio0_pdev,
72 &ls1x_gpio1_pdev, 47 &ls1x_gpio1_pdev,
73 &ls1x_nand_pdev,
74 &ls1x_rtc_pdev, 48 &ls1x_rtc_pdev,
75 &ls1x_wdt_pdev, 49 &ls1x_wdt_pdev,
76}; 50};
@@ -78,8 +52,6 @@ static struct platform_device *ls1b_platform_devices[] __initdata = {
78static int __init ls1b_platform_init(void) 52static int __init ls1b_platform_init(void)
79{ 53{
80 ls1x_serial_set_uartclk(&ls1x_uart_pdev); 54 ls1x_serial_set_uartclk(&ls1x_uart_pdev);
81 ls1x_dma_set_platdata(&ls1x_dma_pdata);
82 ls1x_nand_set_platdata(&ls1x_nand_pdata);
83 55
84 gpio_led_register_device(-1, &ls1x_led_pdata); 56 gpio_led_register_device(-1, &ls1x_led_pdata);
85 57