summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-12 18:50:29 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-12 18:50:29 +0000
commitb6dbd839010e50246278038736b43b54a5da95a6 (patch)
tree6636bb51d032be5cc750361b9e63af378b148a41 /target/linux/ar71xx/files/arch/mips
parentfd4246150de79f7acfc9518178b383bbb30e444e (diff)
ar71xx: fix whitespaces nits
(build error has been fixed - juhosg) Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23975 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-pci.c2
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap94-pci.c20
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/irq.c2
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c14
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c18
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap96.c20
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c6
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-615-c1.c24
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c14
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c22
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-jwap003.c4
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c14
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w300nh.c20
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-nbg460n.c22
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb42.c6
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb44.c8
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb92.c18
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c8
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c2
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c16
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-mr3420.c14
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c20
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr1043nd.c8
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.c12
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr841n.c12
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c12
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c34
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c18
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c18
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c22
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c14
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-zcn-1523h.c24
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/nvram.c2
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/setup.c2
-rw-r--r--target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/mangle-port.h2
-rw-r--r--target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h4
-rw-r--r--target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c8
37 files changed, 243 insertions, 243 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-pci.c b/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-pci.c
index e773702e1..2e55ea37b 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-pci.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-pci.c
@@ -33,7 +33,7 @@ static struct ar71xx_pci_irq ap91_pci_irqs[] __initdata = {
static int ap91_pci_plat_dev_init(struct pci_dev *dev)
{
- switch(PCI_SLOT(dev->devfn)) {
+ switch (PCI_SLOT(dev->devfn)) {
case 0:
dev->dev.platform_data = &ap91_wmac_data;
break;
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap94-pci.c b/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap94-pci.c
index 4919a5386..c91aada13 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap94-pci.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap94-pci.c
@@ -28,20 +28,20 @@ static char ap94_wmac0_mac[6];
static char ap94_wmac1_mac[6];
static struct ar71xx_pci_irq ap94_pci_irqs[] __initdata = {
- {
- .slot = 0,
- .pin = 1,
- .irq = AR71XX_PCI_IRQ_DEV0,
- }, {
- .slot = 1,
- .pin = 1,
- .irq = AR71XX_PCI_IRQ_DEV1,
- }
+ {
+ .slot = 0,
+ .pin = 1,
+ .irq = AR71XX_PCI_IRQ_DEV0,
+ }, {
+ .slot = 1,
+ .pin = 1,
+ .irq = AR71XX_PCI_IRQ_DEV1,
+ }
};
static int ap94_pci_plat_dev_init(struct pci_dev *dev)
{
- switch(PCI_SLOT(dev->devfn)) {
+ switch (PCI_SLOT(dev->devfn)) {
case 17:
dev->dev.platform_data = &ap94_wmac0_data;
break;
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c b/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c
index 4e1da167d..08317b42c 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/irq.c
@@ -271,7 +271,7 @@ asmlinkage void plat_irq_dispatch(void)
void __init arch_init_irq(void)
{
- switch(ar71xx_soc) {
+ switch (ar71xx_soc) {
case AR71XX_SOC_AR7240:
case AR71XX_SOC_AR7241:
case AR71XX_SOC_AR7242:
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c
index 5e06c6c1e..2bf1e227b 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c
@@ -39,19 +39,19 @@ static struct mtd_partition ap81_partitions[] = {
.offset = 0,
.size = 0x040000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "u-boot-env",
.offset = 0x040000,
.size = 0x010000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x050000,
.size = 0x500000,
- } , {
+ }, {
.name = "uImage",
.offset = 0x550000,
.size = 0x100000,
- } , {
+ }, {
.name = "ART",
.offset = 0x650000,
.size = 0x1b0000,
@@ -62,8 +62,8 @@ static struct mtd_partition ap81_partitions[] = {
static struct flash_platform_data ap81_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = ap81_partitions,
- .nr_parts = ARRAY_SIZE(ap81_partitions),
+ .parts = ap81_partitions,
+ .nr_parts = ARRAY_SIZE(ap81_partitions),
#endif
};
@@ -95,7 +95,7 @@ static struct gpio_button ap81_gpio_buttons[] __initdata = {
.threshold = 3,
.gpio = AP81_GPIO_BTN_SW1,
.active_low = 1,
- } , {
+ }, {
.desc = "sw4",
.type = EV_KEY,
.code = BTN_1,
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
index 8417b7539..721e0c3c0 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
@@ -47,25 +47,25 @@ static struct mtd_partition ap83_flash_partitions[] = {
.offset = 0,
.size = 0x040000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "u-boot-env",
.offset = 0x040000,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "kernel",
.offset = 0x060000,
.size = 0x140000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x1a0000,
.size = 0x650000,
- } , {
+ }, {
.name = "art",
.offset = 0x7f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x060000,
.size = 0x790000,
@@ -76,8 +76,8 @@ static struct mtd_partition ap83_flash_partitions[] = {
static struct ar91xx_flash_platform_data ap83_flash_data = {
.width = 2,
#ifdef CONFIG_MTD_PARTITIONS
- .parts = ap83_flash_partitions,
- .nr_parts = ARRAY_SIZE(ap83_flash_partitions),
+ .parts = ap83_flash_partitions,
+ .nr_parts = ARRAY_SIZE(ap83_flash_partitions),
#endif
};
@@ -123,7 +123,7 @@ static struct gpio_button ap83_gpio_buttons[] __initdata = {
.threshold = 3,
.gpio = AP83_GPIO_BTN_RESET,
.active_low = 1,
- } , {
+ }, {
.desc = "jumpstart",
.type = EV_KEY,
.code = KEY_WPS_BUTTON,
@@ -231,7 +231,7 @@ static void __init ap83_generic_setup(void)
static void __init ap83_040_setup(void)
{
- ap83_flash_data.is_shared=1;
+ ap83_flash_data.is_shared = 1;
ap83_generic_setup();
platform_device_register(&ap83_040_spi_device);
}
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap96.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap96.c
index c5b2d3abd..c8d86ef78 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap96.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap96.c
@@ -51,20 +51,20 @@ static struct mtd_partition ap96_partitions[] = {
.offset = 0,
.size = 0x030000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "env",
.offset = 0x030000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x040000,
.size = 0x600000,
- } , {
+ }, {
.name = "uImage",
.offset = 0x640000,
.size = 0x1b0000,
- } , {
+ }, {
.name = "caldata",
.offset = 0x7f0000,
.size = 0x010000,
@@ -75,8 +75,8 @@ static struct mtd_partition ap96_partitions[] = {
static struct flash_platform_data ap96_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = ap96_partitions,
- .nr_parts = ARRAY_SIZE(ap96_partitions),
+ .parts = ap96_partitions,
+ .nr_parts = ARRAY_SIZE(ap96_partitions),
#endif
};
@@ -163,12 +163,12 @@ static void __init ap96_setup(void)
ar71xx_add_device_m25p80(&ap96_flash_data);
- ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(ap96_leds_gpio),
- ap96_leds_gpio);
+ ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(ap96_leds_gpio),
+ ap96_leds_gpio);
ar71xx_add_device_gpio_buttons(-1, AP96_BUTTONS_POLL_INTERVAL,
- ARRAY_SIZE(ap96_gpio_buttons),
- ap96_gpio_buttons);
+ ARRAY_SIZE(ap96_gpio_buttons),
+ ap96_gpio_buttons);
ap94_pci_init(art + AP96_CALDATA0_OFFSET,
art + AP96_WMAC0_MAC_OFFSET,
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c
index ffb4c0b84..c3b526cd3 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c
@@ -72,8 +72,8 @@ static struct mtd_partition dir_600_a1_partitions[] = {
static struct flash_platform_data dir_600_a1_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = dir_600_a1_partitions,
- .nr_parts = ARRAY_SIZE(dir_600_a1_partitions),
+ .parts = dir_600_a1_partitions,
+ .nr_parts = ARRAY_SIZE(dir_600_a1_partitions),
#endif
};
@@ -117,7 +117,7 @@ static void __init dir_600_a1_setup(void)
u8 *mac = NULL;
if (nvram_parse_mac_addr(nvram, DIR_600_A1_NVRAM_SIZE,
- "lan_mac=", mac_buff) == 0) {
+ "lan_mac=", mac_buff) == 0) {
ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1);
mac = mac_buff;
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-615-c1.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-615-c1.c
index 260397bf2..e98ccacaa 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-615-c1.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-615-c1.c
@@ -47,24 +47,24 @@ static struct mtd_partition dir_615c1_partitions[] = {
.offset = 0,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "config",
.offset = 0x020000,
.size = 0x010000,
- } , {
+ }, {
.name = "kernel",
.offset = 0x030000,
.size = 0x0d0000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x100000,
.size = 0x2f0000,
- } , {
+ }, {
.name = "art",
.offset = 0x3f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x030000,
.size = 0x3c0000,
@@ -74,8 +74,8 @@ static struct mtd_partition dir_615c1_partitions[] = {
static struct flash_platform_data dir_615c1_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = dir_615c1_partitions,
- .nr_parts = ARRAY_SIZE(dir_615c1_partitions),
+ .parts = dir_615c1_partitions,
+ .nr_parts = ARRAY_SIZE(dir_615c1_partitions),
#endif
};
@@ -96,13 +96,13 @@ static struct gpio_led dir_615c1_leds_gpio[] __initdata = {
.name = "dir-615c1:green:wancpu",
.gpio = DIR_615C1_GPIO_LED_GREEN_WANCPU,
.active_low = 1,
- }, {
+ }, {
.name = "dir-615c1:green:wlan",
.gpio = DIR_615C1_GPIO_LED_GREEN_WLAN,
.active_low = 1,
- }, {
- .name = "dir-615c1:green:status",
- .gpio = DIR_615C1_GPIO_LED_GREEN_STATUS,
+ }, {
+ .name = "dir-615c1:green:status",
+ .gpio = DIR_615C1_GPIO_LED_GREEN_STATUS,
.active_low = 1,
}, {
.name = "dir-615c1:orange:wan",
@@ -141,7 +141,7 @@ static void __init dir_615c1_setup(void)
u8 *wlan_mac = NULL;
if (nvram_parse_mac_addr(config, DIR_615C1_CONFIG_SIZE,
- "lan_mac=", mac) == 0) {
+ "lan_mac=", mac) == 0) {
ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1);
wlan_mac = mac;
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c
index e886f5b21..5ecc47390 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c
@@ -54,21 +54,21 @@ static struct mtd_partition dir825b1_partitions[] = {
.offset = 0,
.size = 0x040000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "config",
.offset = 0x040000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x050000,
.size = 0x610000,
- } , {
+ }, {
.name = "caldata",
.offset = 0x660000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "unknown",
.offset = 0x670000,
.size = 0x190000,
@@ -79,8 +79,8 @@ static struct mtd_partition dir825b1_partitions[] = {
static struct flash_platform_data dir825b1_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = dir825b1_partitions,
- .nr_parts = ARRAY_SIZE(dir825b1_partitions),
+ .parts = dir825b1_partitions,
+ .nr_parts = ARRAY_SIZE(dir825b1_partitions),
#endif
};
@@ -120,7 +120,7 @@ static struct gpio_button dir825b1_gpio_buttons[] __initdata = {
.threshold = 3,
.gpio = DIR825B1_GPIO_BTN_RESET,
.active_low = 1,
- } , {
+ }, {
.desc = "powersave",
.type = EV_KEY,
.code = BTN_1,
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c
index 3006698f9..521156621 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c
@@ -45,20 +45,20 @@ static u16 eap7660d_wmac0_eeprom[ATH5K_PLAT_EEP_MAX_WORDS];
static u16 eap7660d_wmac1_eeprom[ATH5K_PLAT_EEP_MAX_WORDS];
static struct ar71xx_pci_irq eap7660d_pci_irqs[] __initdata = {
- {
- .slot = 0,
- .pin = 1,
- .irq = AR71XX_PCI_IRQ_DEV0,
- }, {
- .slot = 1,
- .pin = 1,
- .irq = AR71XX_PCI_IRQ_DEV1,
- }
+ {
+ .slot = 0,
+ .pin = 1,
+ .irq = AR71XX_PCI_IRQ_DEV0,
+ }, {
+ .slot = 1,
+ .pin = 1,
+ .irq = AR71XX_PCI_IRQ_DEV1,
+ }
};
static int eap7660d_pci_plat_dev_init(struct pci_dev *dev)
{
- switch(PCI_SLOT(dev->devfn)) {
+ switch (PCI_SLOT(dev->devfn)) {
case 17:
dev->dev.platform_data = &eap7660d_wmac0_data;
break;
@@ -72,7 +72,7 @@ static int eap7660d_pci_plat_dev_init(struct pci_dev *dev)
}
void __init eap7660d_pci_init(u8 *cal_data0, u8 *mac_addr0,
- u8 *cal_data1, u8 *mac_addr1)
+ u8 *cal_data1, u8 *mac_addr1)
{
if (cal_data0 && *cal_data0 == 0xa55a) {
memcpy(eap7660d_wmac0_eeprom, cal_data0,
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-jwap003.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-jwap003.c
index 7d64fe96c..d62e9a000 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-jwap003.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-jwap003.c
@@ -72,8 +72,8 @@ static void __init jwap003_init(void)
ar71xx_add_device_usb();
ar71xx_add_device_gpio_buttons(-1, JWAP003_BUTTONS_POLL_INTERVAL,
- ARRAY_SIZE(jwap003_gpio_buttons),
- jwap003_gpio_buttons);
+ ARRAY_SIZE(jwap003_gpio_buttons),
+ jwap003_gpio_buttons);
pb42_pci_init();
}
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c
index 48e080fe2..829501e8f 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c
@@ -41,24 +41,24 @@ static struct mtd_partition mzk_w04nu_partitions[] = {
.offset = 0,
.size = 0x040000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "u-boot-env",
.offset = 0x040000,
.size = 0x010000,
- } , {
+ }, {
.name = "kernel",
.offset = 0x050000,
.size = 0x160000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x1b0000,
.size = 0x630000,
- } , {
+ }, {
.name = "art",
.offset = 0x7e0000,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x050000,
.size = 0x790000,
@@ -68,8 +68,8 @@ static struct mtd_partition mzk_w04nu_partitions[] = {
static struct flash_platform_data mzk_w04nu_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = mzk_w04nu_partitions,
- .nr_parts = ARRAY_SIZE(mzk_w04nu_partitions),
+ .parts = mzk_w04nu_partitions,
+ .nr_parts = ARRAY_SIZE(mzk_w04nu_partitions),
#endif
};
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w300nh.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w300nh.c
index 4d5df02cf..b84038489 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w300nh.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w300nh.c
@@ -40,24 +40,24 @@ static struct mtd_partition mzk_w300nh_partitions[] = {
.offset = 0,
.size = 0x040000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "u-boot-env",
.offset = 0x040000,
.size = 0x010000,
- } , {
+ }, {
.name = "kernel",
.offset = 0x050000,
.size = 0x160000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x1b0000,
.size = 0x630000,
- } , {
+ }, {
.name = "art",
.offset = 0x7e0000,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x050000,
.size = 0x790000,
@@ -67,8 +67,8 @@ static struct mtd_partition mzk_w300nh_partitions[] = {
static struct flash_platform_data mzk_w300nh_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = mzk_w300nh_partitions,
- .nr_parts = ARRAY_SIZE(mzk_w300nh_partitions),
+ .parts = mzk_w300nh_partitions,
+ .nr_parts = ARRAY_SIZE(mzk_w300nh_partitions),
#endif
};
@@ -146,11 +146,11 @@ static void __init mzk_w300nh_setup(void)
ar71xx_add_device_m25p80(&mzk_w300nh_flash_data);
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(mzk_w300nh_leds_gpio),
- mzk_w300nh_leds_gpio);
+ mzk_w300nh_leds_gpio);
ar71xx_add_device_gpio_buttons(-1, MZK_W04NU_BUTTONS_POLL_INTERVAL,
- ARRAY_SIZE(mzk_w300nh_gpio_buttons),
- mzk_w300nh_gpio_buttons);
+ ARRAY_SIZE(mzk_w300nh_gpio_buttons),
+ mzk_w300nh_gpio_buttons);
ar913x_add_device_wmac(eeprom, NULL);
}
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-nbg460n.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-nbg460n.c
index 3ef8afa1e..365b88def 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-nbg460n.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-nbg460n.c
@@ -55,28 +55,28 @@ static struct mtd_partition nbg460n_partitions[] = {
.offset = 0,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "U-Boot Config",
.offset = 0x010000,
.size = 0x030000,
- } , {
+ }, {
.name = "U-Boot",
.offset = 0x040000,
.size = 0x030000,
- } , {
+ }, {
.name = "linux",
.offset = 0x070000,
.size = 0x0e0000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x150000,
.size = 0x2a0000,
- } , {
+ }, {
.name = "CalibData",
.offset = 0x3f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x070000,
.size = 0x380000,
@@ -86,8 +86,8 @@ static struct mtd_partition nbg460n_partitions[] = {
static struct flash_platform_data nbg460n_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = nbg460n_partitions,
- .nr_parts = ARRAY_SIZE(nbg460n_partitions),
+ .parts = nbg460n_partitions,
+ .nr_parts = ARRAY_SIZE(nbg460n_partitions),
#endif
};
@@ -165,8 +165,8 @@ static void __devinit nbg460n_i2c_init(void)
static struct rtl8366s_platform_data nbg460n_rtl8366s_data = {
- .gpio_sda = NBG460N_GPIO_RTL8366_SDA,
- .gpio_sck = NBG460N_GPIO_RTL8366_SCK,
+ .gpio_sda = NBG460N_GPIO_RTL8366_SDA,
+ .gpio_sck = NBG460N_GPIO_RTL8366_SCK,
};
static struct platform_device nbg460n_rtl8366s_device = {
@@ -179,7 +179,7 @@ static struct platform_device nbg460n_rtl8366s_device = {
static void __init nbg460n_setup(void)
{
- /* end of bootloader sector contains mac address*/
+ /* end of bootloader sector contains mac address */
u8 *mac = (u8 *) KSEG1ADDR(0x1fc0fff8);
/* last sector contains wlan calib data */
u8 *eeprom = (u8 *) KSEG1ADDR(0x1fff1000);
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb42.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb42.c
index d14cc9b95..2dbb75374 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb42.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb42.c
@@ -31,7 +31,7 @@ static struct gpio_button pb42_gpio_buttons[] __initdata = {
.threshold = 3,
.gpio = PB42_GPIO_BTN_SW4,
.active_low = 1,
- } , {
+ }, {
.desc = "sw5",
.type = EV_KEY,
.code = BTN_1,
@@ -64,8 +64,8 @@ static void __init pb42_init(void)
ar71xx_add_device_eth(1);
ar71xx_add_device_gpio_buttons(-1, PB42_BUTTONS_POLL_INTERVAL,
- ARRAY_SIZE(pb42_gpio_buttons),
- pb42_gpio_buttons);
+ ARRAY_SIZE(pb42_gpio_buttons),
+ pb42_gpio_buttons);
pb42_pci_init();
}
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb44.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb44.c
index 51951614e..219b832ee 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb44.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb44.c
@@ -98,7 +98,7 @@ static struct gpio_button pb44_gpio_buttons[] __initdata = {
.threshold = 3,
.gpio = PB44_GPIO_SW_RESET,
.active_low = 1,
- } , {
+ }, {
.desc = "jumpstart",
.type = EV_KEY,
.code = KEY_WPS_BUTTON,
@@ -192,7 +192,7 @@ static void __init pb44_init(void)
pb42_pci_init();
i2c_register_board_info(0, pb44_i2c_board_info,
- ARRAY_SIZE(pb44_i2c_board_info));
+ ARRAY_SIZE(pb44_i2c_board_info));
platform_device_register(&pb44_i2c_gpio_device);
@@ -200,10 +200,10 @@ static void __init pb44_init(void)
platform_device_register(&pb44_spi_device);
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(pb44_leds_gpio),
- pb44_leds_gpio);
+ pb44_leds_gpio);
ar71xx_add_device_gpio_buttons(-1, 20, ARRAY_SIZE(pb44_gpio_buttons),
- pb44_gpio_buttons);
+ pb44_gpio_buttons);
}
MIPS_MACHINE(AR71XX_MACH_PB44, "PB44", "Atheros PB44", pb44_init);
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb92.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb92.c
index 0419e9b72..83a1e66ce 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb92.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb92.c
@@ -28,19 +28,19 @@ static struct mtd_partition pb92_partitions[] = {
.offset = 0,
.size = 0x040000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "u-boot-env",
.offset = 0x040000,
.size = 0x010000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x050000,
.size = 0x2b0000,
- } , {
+ }, {
.name = "uImage",
.offset = 0x300000,
.size = 0x0e0000,
- } , {
+ }, {
.name = "ART",
.offset = 0x3e0000,
.size = 0x020000,
@@ -51,8 +51,8 @@ static struct mtd_partition pb92_partitions[] = {
static struct flash_platform_data pb92_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = pb92_partitions,
- .nr_parts = ARRAY_SIZE(pb92_partitions),
+ .parts = pb92_partitions,
+ .nr_parts = ARRAY_SIZE(pb92_partitions),
#endif
};
@@ -70,7 +70,7 @@ static struct gpio_button pb92_gpio_buttons[] __initdata = {
.threshold = 3,
.gpio = PB92_GPIO_BTN_SW4,
.active_low = 1,
- } , {
+ }, {
.desc = "sw5",
.type = EV_KEY,
.code = BTN_1,
@@ -101,8 +101,8 @@ static void __init pb92_init(void)
ar71xx_add_device_eth(1);
ar71xx_add_device_gpio_buttons(-1, PB92_BUTTONS_POLL_INTERVAL,
- ARRAY_SIZE(pb92_gpio_buttons),
- pb92_gpio_buttons);
+ ARRAY_SIZE(pb92_gpio_buttons),
+ pb92_gpio_buttons);
pb9x_pci_init();
}
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c
index 8694211d9..0ec313dd0 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c
@@ -138,9 +138,9 @@ static struct mtd_partition rb4xx_partitions[] = {
#endif /* CONFIG_MTD_PARTITIONS */
static struct flash_platform_data rb4xx_flash_data = {
- .type = "pm25lv512",
- .parts = rb4xx_partitions,
- .nr_parts = rb4xx_num_partitions,
+ .type = "pm25lv512",
+ .parts = rb4xx_partitions,
+ .nr_parts = rb4xx_num_partitions,
};
static struct rb4xx_cpld_platform_data rb4xx_cpld_data = {
@@ -196,7 +196,7 @@ static struct platform_device rb4xx_spi_device = {
static void __init rb4xx_generic_setup(void)
{
ar71xx_gpio_function_enable(AR71XX_GPIO_FUNC_SPI_CS1_EN |
- AR71XX_GPIO_FUNC_SPI_CS2_EN);
+ AR71XX_GPIO_FUNC_SPI_CS2_EN);
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(rb4xx_leds_gpio),
rb4xx_leds_gpio);
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
index d60f45294..5ed383f94 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
@@ -103,7 +103,7 @@ int rb750_latch_change(u32 mask_clr, u32 mask_set)
ret = 1;
- unlock:
+unlock:
spin_unlock_irqrestore(&lock, flags);
return ret;
}
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c
index 3ace1dd54..7bbec1266 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c
@@ -40,24 +40,24 @@ static struct mtd_partition tew_632brp_partitions[] = {
.offset = 0,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "config",
.offset = 0x020000,
.size = 0x010000,
- } , {
+ }, {
.name = "kernel",
.offset = 0x030000,
.size = 0x0d0000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x100000,
.size = 0x2f0000,
- } , {
+ }, {
.name = "art",
.offset = 0x3f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x030000,
.size = 0x3c0000,
@@ -67,8 +67,8 @@ static struct mtd_partition tew_632brp_partitions[] = {
static struct flash_platform_data tew_632brp_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = tew_632brp_partitions,
- .nr_parts = ARRAY_SIZE(tew_632brp_partitions),
+ .parts = tew_632brp_partitions,
+ .nr_parts = ARRAY_SIZE(tew_632brp_partitions),
#endif
};
@@ -117,7 +117,7 @@ static void __init tew_632brp_setup(void)
u8 *wlan_mac = NULL;
if (nvram_parse_mac_addr(config, TEW_632BRP_CONFIG_SIZE,
- "lan_mac=", mac) == 0) {
+ "lan_mac=", mac) == 0) {
ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1);
wlan_mac = mac;
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-mr3420.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-mr3420.c
index 5121528cd..c1888cac8 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-mr3420.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-mr3420.c
@@ -40,20 +40,20 @@ static struct mtd_partition tl_mr3420_partitions[] = {
.offset = 0,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "kernel",
.offset = 0x020000,
.size = 0x140000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x160000,
.size = 0x290000,
- } , {
+ }, {
.name = "art",
.offset = 0x3f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x020000,
.size = 0x3d0000,
@@ -66,8 +66,8 @@ static struct mtd_partition tl_mr3420_partitions[] = {
#endif /* CONFIG_MTD_PARTITIONS */
static struct flash_platform_data tl_mr3420_flash_data = {
- .parts = tl_mr3420_partitions,
- .nr_parts = tl_mr3420_num_partitions,
+ .parts = tl_mr3420_partitions,
+ .nr_parts = tl_mr3420_num_partitions,
};
static struct gpio_led tl_mr3420_leds_gpio[] __initdata = {
@@ -110,7 +110,7 @@ static void __init tl_mr3420_setup(void)
u8 *ee = (u8 *) KSEG1ADDR(0x1fff1000);
/* enable power for the USB port */
- gpio_request(TL_MR3420_GPIO_USB_POWER,"USB power");
+ gpio_request(TL_MR3420_GPIO_USB_POWER, "USB power");
gpio_direction_output(TL_MR3420_GPIO_USB_POWER, 1);
ar71xx_add_device_m25p80(&tl_mr3420_flash_data);
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c
index da6946839..3193262c7 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c
@@ -36,20 +36,20 @@ static struct mtd_partition tl_wa901nd_partitions[] = {
.offset = 0,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "kernel",
.offset = 0x020000,
.size = 0x140000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x160000,
.size = 0x290000,
- } , {
+ }, {
.name = "art",
.offset = 0x3f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x020000,
.size = 0x3d0000,
@@ -59,8 +59,8 @@ static struct mtd_partition tl_wa901nd_partitions[] = {
static struct flash_platform_data tl_wa901nd_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = tl_wa901nd_partitions,
- .nr_parts = ARRAY_SIZE(tl_wa901nd_partitions),
+ .parts = tl_wa901nd_partitions,
+ .nr_parts = ARRAY_SIZE(tl_wa901nd_partitions),
#endif
};
@@ -116,14 +116,14 @@ static void __init tl_wa901nd_setup(void)
ar71xx_add_device_m25p80(&tl_wa901nd_flash_data);
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(tl_wa901nd_leds_gpio),
- tl_wa901nd_leds_gpio);
+ tl_wa901nd_leds_gpio);
ar71xx_add_device_gpio_buttons(-1, TL_WA901ND_BUTTONS_POLL_INTERVAL,
- ARRAY_SIZE(tl_wa901nd_gpio_buttons),
- tl_wa901nd_gpio_buttons);
+ ARRAY_SIZE(tl_wa901nd_gpio_buttons),
+ tl_wa901nd_gpio_buttons);
ap91_pci_init(ee, mac);
}
MIPS_MACHINE(AR71XX_MACH_TL_WA901ND, "TL-WA901ND", "TP-LINK TL-WA901ND",
- tl_wa901nd_setup);
+ tl_wa901nd_setup);
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr1043nd.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr1043nd.c
index 99cb7d843..57948b356 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr1043nd.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr1043nd.c
@@ -42,20 +42,20 @@ static struct mtd_partition tl_wr1043nd_partitions[] = {
.offset = 0,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "kernel",
.offset = 0x020000,
.size = 0x140000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x160000,
.size = 0x690000,
- } , {
+ }, {
.name = "art",
.offset = 0x7f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x020000,
.size = 0x7d0000,
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.c
index b2cee220b..d614892b8 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.c
@@ -35,20 +35,20 @@ static struct mtd_partition tl_wr741nd_partitions[] = {
.offset = 0,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "kernel",
.offset = 0x020000,
.size = 0x140000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x160000,
.size = 0x290000,
- } , {
+ }, {
.name = "art",
.offset = 0x3f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x020000,
.size = 0x3d0000,
@@ -58,8 +58,8 @@ static struct mtd_partition tl_wr741nd_partitions[] = {
static struct flash_platform_data tl_wr741nd_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = tl_wr741nd_partitions,
- .nr_parts = ARRAY_SIZE(tl_wr741nd_partitions),
+ .parts = tl_wr741nd_partitions,
+ .nr_parts = ARRAY_SIZE(tl_wr741nd_partitions),
#endif
};
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr841n.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr841n.c
index 74f5c2c16..a9a59e5cf 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr841n.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr841n.c
@@ -37,20 +37,20 @@ static struct mtd_partition tl_wr841n_v1_partitions[] = {
.offset = 0,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "kernel",
.offset = 0x020000,
.size = 0x140000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x160000,
.size = 0x280000,
- } , {
+ }, {
.name = "config",
.offset = 0x3e0000,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x020000,
.size = 0x3c0000,
@@ -60,8 +60,8 @@ static struct mtd_partition tl_wr841n_v1_partitions[] = {
static struct flash_platform_data tl_wr841n_v1_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = tl_wr841n_v1_partitions,
- .nr_parts = ARRAY_SIZE(tl_wr841n_v1_partitions),
+ .parts = tl_wr841n_v1_partitions,
+ .nr_parts = ARRAY_SIZE(tl_wr841n_v1_partitions),
#endif
};
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c
index 85289bdf5..91a9aa872 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c
@@ -37,20 +37,20 @@ static struct mtd_partition tl_wr941nd_partitions[] = {
.offset = 0,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "kernel",
.offset = 0x020000,
.size = 0x140000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x160000,
.size = 0x290000,
- } , {
+ }, {
.name = "art",
.offset = 0x3f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x020000,
.size = 0x3d0000,
@@ -60,8 +60,8 @@ static struct mtd_partition tl_wr941nd_partitions[] = {
static struct flash_platform_data tl_wr941nd_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = tl_wr941nd_partitions,
- .nr_parts = ARRAY_SIZE(tl_wr941nd_partitions),
+ .parts = tl_wr941nd_partitions,
+ .nr_parts = ARRAY_SIZE(tl_wr941nd_partitions),
#endif
};
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c
index 52ddae5a1..bc7c90073 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c
@@ -55,41 +55,41 @@ static struct mtd_partition wndr3700_partitions[] = {
.offset = 0,
.size = 0x050000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "env",
.offset = 0x050000,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x070000,
.size = 0x720000,
- } , {
+ }, {
.name = "config",
.offset = 0x790000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "config_bak",
.offset = 0x7a0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "pot",
.offset = 0x7b0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "traffic_meter",
.offset = 0x7c0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "language",
.offset = 0x7d0000,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "caldata",
.offset = 0x7f0000,
.size = 0x010000,
@@ -100,8 +100,8 @@ static struct mtd_partition wndr3700_partitions[] = {
static struct flash_platform_data wndr3700_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = wndr3700_partitions,
- .nr_parts = ARRAY_SIZE(wndr3700_partitions),
+ .parts = wndr3700_partitions,
+ .nr_parts = ARRAY_SIZE(wndr3700_partitions),
#endif
};
@@ -144,7 +144,7 @@ static struct gpio_button wndr3700_gpio_buttons[] __initdata = {
.threshold = 3,
.gpio = WNDR3700_GPIO_BTN_WPS,
.active_low = 1,
- } , {
+ }, {
.desc = "wifi",
.type = EV_KEY,
.code = BTN_2,
@@ -155,8 +155,8 @@ static struct gpio_button wndr3700_gpio_buttons[] __initdata = {
};
static struct rtl8366s_platform_data wndr3700_rtl8366s_data = {
- .gpio_sda = WNDR3700_GPIO_RTL8366_SDA,
- .gpio_sck = WNDR3700_GPIO_RTL8366_SCK,
+ .gpio_sda = WNDR3700_GPIO_RTL8366_SDA,
+ .gpio_sck = WNDR3700_GPIO_RTL8366_SCK,
};
static struct platform_device wndr3700_rtl8366s_device = {
@@ -193,12 +193,12 @@ static void __init wndr3700_setup(void)
ar71xx_add_device_m25p80(&wndr3700_flash_data);
- ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(wndr3700_leds_gpio),
- wndr3700_leds_gpio);
+ ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(wndr3700_leds_gpio),
+ wndr3700_leds_gpio);
ar71xx_add_device_gpio_buttons(-1, WNDR3700_BUTTONS_POLL_INTERVAL,
- ARRAY_SIZE(wndr3700_gpio_buttons),
- wndr3700_gpio_buttons);
+ ARRAY_SIZE(wndr3700_gpio_buttons),
+ wndr3700_gpio_buttons);
platform_device_register(&wndr3700_rtl8366s_device);
platform_device_register_simple("wndr3700-led-usb", -1, NULL, 0);
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c
index 002c8ab9f..f4171b01e 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c
@@ -38,31 +38,31 @@ static struct mtd_partition wnr2000_partitions[] = {
.offset = 0,
.size = 0x040000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "u-boot-env",
.offset = 0x040000,
.size = 0x010000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x050000,
.size = 0x240000,
- } , {
+ }, {
.name = "user-config",
.offset = 0x290000,
.size = 0x010000,
- } , {
+ }, {
.name = "uImage",
.offset = 0x2a0000,
.size = 0x120000,
- } , {
+ }, {
.name = "language_table",
.offset = 0x3c0000,
.size = 0x020000,
- } , {
+ }, {
.name = "rootfs_checksum",
.offset = 0x3e0000,
.size = 0x010000,
- } , {
+ }, {
.name = "art",
.offset = 0x3f0000,
.size = 0x010000,
@@ -73,8 +73,8 @@ static struct mtd_partition wnr2000_partitions[] = {
static struct flash_platform_data wnr2000_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = wnr2000_partitions,
- .nr_parts = ARRAY_SIZE(wnr2000_partitions),
+ .parts = wnr2000_partitions,
+ .nr_parts = ARRAY_SIZE(wnr2000_partitions),
#endif
};
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
index acb7e0d1b..b4c822ddf 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
@@ -42,25 +42,25 @@ static struct mtd_partition wrt160nl_partitions[] = {
.offset = 0,
.size = 0x040000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "kernel",
.offset = 0x040000,
.size = 0x0e0000,
- } , {
+ }, {
.name = "filesytem",
.offset = 0x120000,
.size = 0x6c0000,
- } , {
+ }, {
.name = "nvram",
.offset = 0x7e0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "ART",
.offset = 0x7f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x040000,
.size = 0x7a0000,
@@ -70,8 +70,8 @@ static struct mtd_partition wrt160nl_partitions[] = {
static struct flash_platform_data wrt160nl_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = wrt160nl_partitions,
- .nr_parts = ARRAY_SIZE(wrt160nl_partitions),
+ .parts = wrt160nl_partitions,
+ .nr_parts = ARRAY_SIZE(wrt160nl_partitions),
#endif
};
@@ -121,7 +121,7 @@ static void __init wrt160nl_setup(void)
u8 mac[6];
if (nvram_parse_mac_addr(nvram, WRT160NL_NVRAM_SIZE,
- "lan_hwaddr=", mac) == 0) {
+ "lan_hwaddr=", mac) == 0) {
ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1);
}
@@ -142,7 +142,7 @@ static void __init wrt160nl_setup(void)
ar71xx_add_device_usb();
if (nvram_parse_mac_addr(nvram, WRT160NL_NVRAM_SIZE,
- "wl0_hwaddr=", mac) == 0)
+ "wl0_hwaddr=", mac) == 0)
ar913x_add_device_wmac(eeprom, mac);
else
ar913x_add_device_wmac(eeprom, NULL);
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c
index 5e5536a9f..35860260c 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c
@@ -42,40 +42,40 @@ static struct mtd_partition wrt400n_partitions[] = {
.offset = 0,
.size = 0x030000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "env",
.offset = 0x030000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "linux",
.offset = 0x040000,
.size = 0x140000,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x180000,
.size = 0x630000,
- } , {
+ }, {
.name = "nvram",
.offset = 0x7b0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "factory",
.offset = 0x7c0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "language",
.offset = 0x7d0000,
.size = 0x020000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "caldata",
.offset = 0x7f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x040000,
.size = 0x770000,
@@ -85,8 +85,8 @@ static struct mtd_partition wrt400n_partitions[] = {
static struct flash_platform_data wrt400n_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = wrt400n_partitions,
- .nr_parts = ARRAY_SIZE(wrt400n_partitions),
+ .parts = wrt400n_partitions,
+ .nr_parts = ARRAY_SIZE(wrt400n_partitions),
#endif
};
@@ -118,7 +118,7 @@ static struct gpio_button wrt400n_gpio_buttons[] __initdata = {
.threshold = 3,
.gpio = WRT400N_GPIO_BTN_RESET,
.active_low = 1,
- } , {
+ }, {
.desc = "wlsec",
.type = EV_KEY,
.code = KEY_WPS_BUTTON,
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c
index 83935377a..ac871003a 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c
@@ -93,8 +93,8 @@ static struct mtd_partition wzrhpg300nh_flash_partitions[] = {
static struct ar91xx_flash_platform_data wzrhpg300nh_flash_data = {
.width = 2,
#ifdef CONFIG_MTD_PARTITIONS
- .parts = wzrhpg300nh_flash_partitions,
- .nr_parts = ARRAY_SIZE(wzrhpg300nh_flash_partitions),
+ .parts = wzrhpg300nh_flash_partitions,
+ .nr_parts = ARRAY_SIZE(wzrhpg300nh_flash_partitions),
#endif
};
@@ -213,8 +213,8 @@ static struct platform_device wzrhpg300nh_74hc153_device = {
};
static struct rtl8366s_platform_data wzrhpg300nh_rtl8366s_data = {
- .gpio_sda = WZRHPG300NH_GPIO_RTL8366_SDA,
- .gpio_sck = WZRHPG300NH_GPIO_RTL8366_SCK,
+ .gpio_sda = WZRHPG300NH_GPIO_RTL8366_SDA,
+ .gpio_sck = WZRHPG300NH_GPIO_RTL8366_SCK,
};
static struct platform_device wzrhpg300nh_rtl8366s_device = {
@@ -254,11 +254,11 @@ static void __init wzrhpg300nh_setup(void)
platform_device_register(&wzrhpg300nh_rtl8366s_device);
ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(wzrhpg300nh_leds_gpio),
- wzrhpg300nh_leds_gpio);
+ wzrhpg300nh_leds_gpio);
ar71xx_add_device_gpio_buttons(-1, WZRHPG300NH_BUTTONS_POLL_INTERVAL,
- ARRAY_SIZE(wzrhpg300nh_gpio_buttons),
- wzrhpg300nh_gpio_buttons);
+ ARRAY_SIZE(wzrhpg300nh_gpio_buttons),
+ wzrhpg300nh_gpio_buttons);
}
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-zcn-1523h.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-zcn-1523h.c
index b65e13291..c7be5c029 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-zcn-1523h.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-zcn-1523h.c
@@ -43,35 +43,35 @@ static struct mtd_partition zcn_1523h_partitions[] = {
.offset = 0,
.size = 0x040000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "u-boot-env",
.offset = 0x040000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "rootfs",
.offset = 0x050000,
.size = 0x610000,
- } , {
+ }, {
.name = "kernel",
.offset = 0x660000,
.size = 0x170000,
- } , {
+ }, {
.name = "configure",
.offset = 0x7d0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "mfg",
.offset = 0x7e0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "eeprom",
.offset = 0x7f0000,
.size = 0x010000,
.mask_flags = MTD_WRITEABLE,
- } , {
+ }, {
.name = "firmware",
.offset = 0x050000,
.size = 0x780000,
@@ -81,8 +81,8 @@ static struct mtd_partition zcn_1523h_partitions[] = {
static struct flash_platform_data zcn_1523h_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
- .parts = zcn_1523h_partitions,
- .nr_parts = ARRAY_SIZE(zcn_1523h_partitions),
+ .parts = zcn_1523h_partitions,
+ .nr_parts = ARRAY_SIZE(zcn_1523h_partitions),
#endif
};
@@ -162,7 +162,7 @@ static void __init zcn_1523h_generic_setup(void)
ar71xx_add_device_m25p80(&zcn_1523h_flash_data);
ar71xx_add_device_leds_gpio(0, ARRAY_SIZE(zcn_1523h_leds_gpio),
- zcn_1523h_leds_gpio);
+ zcn_1523h_leds_gpio);
ar71xx_add_device_gpio_buttons(-1, ZCN_1523H_BUTTONS_POLL_INTERVAL,
ARRAY_SIZE(zcn_1523h_gpio_buttons),
@@ -192,7 +192,7 @@ static void __init zcn_1523h_2_setup(void)
zcn_1523h_generic_setup();
ar71xx_add_device_leds_gpio(1, ARRAY_SIZE(zcn_1523h_2_leds_gpio),
- zcn_1523h_2_leds_gpio);
+ zcn_1523h_2_leds_gpio);
}
MIPS_MACHINE(AR71XX_MACH_ZCN_1523H_2, "ZCN-1523H-2", "Zcomax ZCN-1523H-2",
@@ -203,7 +203,7 @@ static void __init zcn_1523h_5_setup(void)
zcn_1523h_generic_setup();
ar71xx_add_device_leds_gpio(1, ARRAY_SIZE(zcn_1523h_5_leds_gpio),
- zcn_1523h_5_leds_gpio);
+ zcn_1523h_5_leds_gpio);
ar71xx_add_device_eth(1);
}
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/nvram.c b/target/linux/ar71xx/files/arch/mips/ar71xx/nvram.c
index e6d1f8047..dfab24646 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/nvram.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/nvram.c
@@ -69,7 +69,7 @@ int nvram_parse_mac_addr(const char *nvram, unsigned nvram_len,
ret = 0;
- free:
+free:
vfree(buf);
return ret;
}
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c b/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c
index d89505f1b..658fdd023 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/setup.c
@@ -63,7 +63,7 @@ static void __init ar71xx_detect_mem_size(void)
unsigned long size;
for (size = AR71XX_MEM_SIZE_MIN; size < AR71XX_MEM_SIZE_MAX;
- size <<= 1 ) {
+ size <<= 1) {
if (!memcmp(ar71xx_detect_mem_size,
ar71xx_detect_mem_size + size, 1024))
break;
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/mangle-port.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/mangle-port.h
index 126d5b3e6..ba41b38b9 100644
--- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/mangle-port.h
+++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/mangle-port.h
@@ -3,7 +3,7 @@
* Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
*
* This file was derived from: inlude/asm-mips/mach-generic/mangle-port.h
- * Copyright (C) 2003, 2004 Ralf Baechle
+ * Copyright (C) 2003, 2004 Ralf Baechle
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h
index cf198d2bf..b0eb22840 100644
--- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h
+++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h
@@ -33,8 +33,8 @@ struct ag71xx_platform_data {
u8 has_ar8216:1;
u8 has_ar7240_switch:1;
- void (* ddr_flush)(void);
- void (* set_pll)(int speed);
+ void (*ddr_flush)(void);
+ void (*set_pll)(int speed);
u32 fifo_cfg1;
u32 fifo_cfg2;
diff --git a/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c b/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c
index b63980619..4ef50145e 100644
--- a/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c
+++ b/target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c
@@ -384,12 +384,12 @@ int __init ar724x_pcibios_init(void)
return 0;
- err_unmap_ctrl:
+err_unmap_ctrl:
iounmap(ar724x_pci_ctrl_base);
- err_unmap_devcfg:
+err_unmap_devcfg:
iounmap(ar724x_pci_devcfg_base);
- err_unmap_localcfg:
+err_unmap_localcfg:
iounmap(ar724x_pci_localcfg_base);
- err:
+err:
return ret;
}