Commit efa386f3 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Ralf Baechle

MIPS: Loongson: common: Fix array initializer syntax.

Fix array initializer syntax to get rid of the following sparse warnings:
"obsolete array initializer, use C99 syntax".
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8525/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 80219c6c
...@@ -35,21 +35,21 @@ enum { ...@@ -35,21 +35,21 @@ enum {
}; };
static const cs5536_pci_vsm_write vsm_conf_write[] = { static const cs5536_pci_vsm_write vsm_conf_write[] = {
[CS5536_ISA_FUNC] pci_isa_write_reg, [CS5536_ISA_FUNC] = pci_isa_write_reg,
[reserved_func] NULL, [reserved_func] = NULL,
[CS5536_IDE_FUNC] pci_ide_write_reg, [CS5536_IDE_FUNC] = pci_ide_write_reg,
[CS5536_ACC_FUNC] pci_acc_write_reg, [CS5536_ACC_FUNC] = pci_acc_write_reg,
[CS5536_OHCI_FUNC] pci_ohci_write_reg, [CS5536_OHCI_FUNC] = pci_ohci_write_reg,
[CS5536_EHCI_FUNC] pci_ehci_write_reg, [CS5536_EHCI_FUNC] = pci_ehci_write_reg,
}; };
static const cs5536_pci_vsm_read vsm_conf_read[] = { static const cs5536_pci_vsm_read vsm_conf_read[] = {
[CS5536_ISA_FUNC] pci_isa_read_reg, [CS5536_ISA_FUNC] = pci_isa_read_reg,
[reserved_func] NULL, [reserved_func] = NULL,
[CS5536_IDE_FUNC] pci_ide_read_reg, [CS5536_IDE_FUNC] = pci_ide_read_reg,
[CS5536_ACC_FUNC] pci_acc_read_reg, [CS5536_ACC_FUNC] = pci_acc_read_reg,
[CS5536_OHCI_FUNC] pci_ohci_read_reg, [CS5536_OHCI_FUNC] = pci_ohci_read_reg,
[CS5536_EHCI_FUNC] pci_ehci_read_reg, [CS5536_EHCI_FUNC] = pci_ehci_read_reg,
}; };
/* /*
......
...@@ -19,16 +19,16 @@ ...@@ -19,16 +19,16 @@
#define MACHTYPE_LEN 50 #define MACHTYPE_LEN 50
static const char *system_types[] = { static const char *system_types[] = {
[MACH_LOONGSON_UNKNOWN] "unknown loongson machine", [MACH_LOONGSON_UNKNOWN] = "unknown loongson machine",
[MACH_LEMOTE_FL2E] "lemote-fuloong-2e-box", [MACH_LEMOTE_FL2E] = "lemote-fuloong-2e-box",
[MACH_LEMOTE_FL2F] "lemote-fuloong-2f-box", [MACH_LEMOTE_FL2F] = "lemote-fuloong-2f-box",
[MACH_LEMOTE_ML2F7] "lemote-mengloong-2f-7inches", [MACH_LEMOTE_ML2F7] = "lemote-mengloong-2f-7inches",
[MACH_LEMOTE_YL2F89] "lemote-yeeloong-2f-8.9inches", [MACH_LEMOTE_YL2F89] = "lemote-yeeloong-2f-8.9inches",
[MACH_DEXXON_GDIUM2F10] "dexxon-gdium-2f", [MACH_DEXXON_GDIUM2F10] = "dexxon-gdium-2f",
[MACH_LEMOTE_NAS] "lemote-nas-2f", [MACH_LEMOTE_NAS] = "lemote-nas-2f",
[MACH_LEMOTE_LL2F] "lemote-lynloong-2f", [MACH_LEMOTE_LL2F] = "lemote-lynloong-2f",
[MACH_LOONGSON_GENERIC] "generic-loongson-machine", [MACH_LOONGSON_GENERIC] = "generic-loongson-machine",
[MACH_LOONGSON_END] NULL, [MACH_LOONGSON_END] = NULL,
}; };
const char *get_system_type(void) const char *get_system_type(void)
......
...@@ -39,16 +39,16 @@ ...@@ -39,16 +39,16 @@
} }
static struct plat_serial8250_port uart8250_data[][MAX_UARTS + 1] = { static struct plat_serial8250_port uart8250_data[][MAX_UARTS + 1] = {
[MACH_LOONGSON_UNKNOWN] {}, [MACH_LOONGSON_UNKNOWN] = {},
[MACH_LEMOTE_FL2E] {PORT(4, 1843200), {} }, [MACH_LEMOTE_FL2E] = {PORT(4, 1843200), {} },
[MACH_LEMOTE_FL2F] {PORT(3, 1843200), {} }, [MACH_LEMOTE_FL2F] = {PORT(3, 1843200), {} },
[MACH_LEMOTE_ML2F7] {PORT_M(3, 3686400), {} }, [MACH_LEMOTE_ML2F7] = {PORT_M(3, 3686400), {} },
[MACH_LEMOTE_YL2F89] {PORT_M(3, 3686400), {} }, [MACH_LEMOTE_YL2F89] = {PORT_M(3, 3686400), {} },
[MACH_DEXXON_GDIUM2F10] {PORT_M(3, 3686400), {} }, [MACH_DEXXON_GDIUM2F10] = {PORT_M(3, 3686400), {} },
[MACH_LEMOTE_NAS] {PORT_M(3, 3686400), {} }, [MACH_LEMOTE_NAS] = {PORT_M(3, 3686400), {} },
[MACH_LEMOTE_LL2F] {PORT(3, 1843200), {} }, [MACH_LEMOTE_LL2F] = {PORT(3, 1843200), {} },
[MACH_LOONGSON_GENERIC] {PORT_M(2, 25000000), {} }, [MACH_LOONGSON_GENERIC] = {PORT_M(2, 25000000), {} },
[MACH_LOONGSON_END] {}, [MACH_LOONGSON_END] = {},
}; };
static struct platform_device uart8250_device = { static struct platform_device uart8250_device = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment