Skip to content

Commit 62c2766

Browse files
committed
MIPS: Loongson32: Remove DMA & NAND devices from ls1b/board.c
Commit 7b3415f ("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: 7b3415f ("MIPS: Loongson32: Remove unused platform devices")
1 parent d6c2fba commit 62c2766

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

arch/mips/loongson32/ls1b/board.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,6 @@
1616
#include <nand.h>
1717
#include <platform.h>
1818

19-
struct plat_ls1x_dma ls1x_dma_pdata = {
20-
.nr_channels = 3,
21-
};
22-
23-
static 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-
36-
struct 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-
4319
static const struct gpio_led ls1x_gpio_leds[] __initconst = {
4420
{
4521
.name = "LED9",
@@ -64,22 +40,18 @@ static const struct gpio_led_platform_data ls1x_led_pdata __initconst = {
6440
static struct platform_device *ls1b_platform_devices[] __initdata = {
6541
&ls1x_uart_pdev,
6642
&ls1x_cpufreq_pdev,
67-
&ls1x_dma_pdev,
6843
&ls1x_eth0_pdev,
6944
&ls1x_eth1_pdev,
7045
&ls1x_ehci_pdev,
7146
&ls1x_gpio0_pdev,
7247
&ls1x_gpio1_pdev,
73-
&ls1x_nand_pdev,
7448
&ls1x_rtc_pdev,
7549
&ls1x_wdt_pdev,
7650
};
7751

7852
static int __init ls1b_platform_init(void)
7953
{
8054
ls1x_serial_set_uartclk(&ls1x_uart_pdev);
81-
ls1x_dma_set_platdata(&ls1x_dma_pdata);
82-
ls1x_nand_set_platdata(&ls1x_nand_pdata);
8355

8456
gpio_led_register_device(-1, &ls1x_led_pdata);
8557

0 commit comments

Comments
 (0)