ar71xx: fix whitespaces nits
authorGabor Juhos <juhosg@openwrt.org>
Fri, 12 Nov 2010 18:50:29 +0000 (18:50 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 12 Nov 2010 18:50:29 +0000 (18:50 +0000)
(build error has been fixed - juhosg)

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23975

58 files changed:
target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-pci.c
target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap94-pci.c
target/linux/ar71xx/files/arch/mips/ar71xx/irq.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap96.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-615-c1.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-jwap003.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w300nh.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-nbg460n.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb42.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb44.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb92.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb4xx.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb750.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-mr3420.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wa901nd.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr1043nd.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr841n.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wzr-hp-g300nh.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-zcn-1523h.c
target/linux/ar71xx/files/arch/mips/ar71xx/nvram.c
target/linux/ar71xx/files/arch/mips/ar71xx/setup.c
target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/mangle-port.h
target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h
target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c
target/linux/ar71xx/files/drivers/gpio/nxp_74hc153.c
target/linux/ar71xx/files/drivers/leds/leds-rb750.c
target/linux/ar71xx/files/drivers/mtd/maps/ar91xx_flash.c
target/linux/ar71xx/files/drivers/mtd/nand/rb4xx_nand.c
target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c
target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_debugfs.c
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_mdio.c
target/linux/ar71xx/files/drivers/spi/ap83_spi.c
target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
target/linux/ar71xx/files/drivers/spi/pb44_spi.c
target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c
target/linux/ar71xx/files/drivers/spi/spi_rb4xx_cpld.c
target/linux/ar71xx/files/drivers/spi/spi_vsc7385.c
target/linux/ar71xx/files/drivers/usb/host/ehci-ar71xx.c
target/linux/ar71xx/files/drivers/usb/host/ohci-ar71xx.c
target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
target/linux/ar71xx/files/include/linux/spi/vsc7385.h

index e773702e14f7840c997d45ed3fa89c87543c9ff2..2e55ea37b1590a0cfad488871067afcf41286868 100644 (file)
@@ -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;
index 4919a5386960f321fd8090aaf32886ad0d780c52..c91aada132a9d7b2479e67c07b754841f30ba98f 100644 (file)
@@ -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;
index 4e1da167dd03181030217df3fb6474237ac74725..08317b42ccee65d0987730931e8ea162e92e3b1b 100644 (file)
@@ -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:
index 5e06c6c1e3ee55a97c076f4587f2f89f07110fd5..2bf1e227b8dd294d4aa3598f5dc35665fd7375bf 100644 (file)
@@ -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,
index 8417b75396e1c3b83c4093d57b9333286b1f3c32..721e0c3c0ee3bd8e418d8b1276def002e86359b7 100644 (file)
@@ -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);
 }
index c5b2d3abd87def17430d08cd4746c20da308ebfc..c8d86ef78c9b86912e21cf6ed18db7ade4d2ea06 100644 (file)
@@ -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,
index ffb4c0b84bc8c367841327e8f1e24d4855bfac0b..c3b526cd34f093ece2c5121de1a14538c02cdb41 100644 (file)
@@ -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;
index 260397bf2c6dd9e5a86ef3114c7dd79261687ed4..e98ccacaaa7394dce8f33c18987f937540f2f17d 100644 (file)
@@ -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;
index e886f5b217a7bf29ae6803d946d2e16653f85af8..5ecc47390c9bca64d226bfb3caa98aaa10f32c36 100644 (file)
@@ -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,
index 3006698f941fb0906dd0ccfefed0e71262a352f7..521156621e67d32d556cf8427fda8492e8a6f5dc 100644 (file)
@@ -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,
index 7d64fe96c6bf059eab6dab1ee538865257ab8bf2..d62e9a00028e858432026f102f9eec9610652703 100644 (file)
@@ -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();
 }
index 48e080fe2cd10eda24f91f0dc2f15aabd34bf65b..829501e8f31cd419068cbac1640ef9d1f9a8015b 100644 (file)
@@ -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
 };
 
index 4d5df02cfc8fd4d6f776da4846d6e16d67decd9e..b84038489c1423eb2a3a6ec61e99fe282b22d0dd 100644 (file)
@@ -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);
 }
 
index 3ef8afa1e215ef30acfc97afb9ff3e857015d146..365b88defc1bf6b13af809dd2d3e94ae4a3aeedf 100644 (file)
@@ -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);
index d14cc9b9540dc2f2ae59fca77e463d5cedac5282..2dbb7537430d9d6fd6a471500d67572fb8aba2d1 100644 (file)
@@ -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();
 }
index 51951614e9c8de6303b3e46327e078d2ab3397e1..219b832ee354a41c636e06bda1ebef50c5d8ea9a 100644 (file)
@@ -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);
index 0419e9b7218a0aa02c128d8cc5fcfcac2507ad92..83a1e66cef5c759595b1507de5e83706f4e8b1b4 100644 (file)
@@ -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();
 }
index 8694211d9eedb2d374cda9213f848214a73a1798..0ec313dd05276767b312174413282aabac2a82cc 100644 (file)
@@ -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);
index d60f45294db30ea8dbcaa415e3fb966c49132da0..5ed383f9429e59c1fcbf938a3f1caaf558bcd129 100644 (file)
@@ -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;
 }
index 3ace1dd5446d47c6b5c77820c1b5b27c7ab159df..7bbec12668f6bfdf123a057ddb364de516ee8d7a 100644 (file)
@@ -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;
index 5121528cd986d29b7cc46369a906949d8aee0c42..c1888cac846f730df65c7dee95470fcda91ce625 100644 (file)
@@ -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);
index da694683948797cb00ec03e882270855efe1b402..3193262c7dbaae4059bfb3378bd19b7dcee632a7 100644 (file)
@@ -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);
index 99cb7d843ae588edc5503dce96bca1528d545718..57948b35627441854582defe970b4649dc63ec85 100644 (file)
@@ -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,
index b2cee220bb28d1f9e73b49e33cc1d8a010a220f8..d614892b83b100fc83ceb7f22fca105c957ff957 100644 (file)
@@ -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
 };
 
index 74f5c2c16d0d0ca8e19b63056aa1129934365dda..a9a59e5cf55e75a55d82dec2926126fe7e430bf7 100644 (file)
@@ -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
 };
 
index 85289bdf59269a489f14b179aff3f314b3949e24..91a9aa8729340e9afa6177eea48c3c5f61ff0412 100644 (file)
@@ -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
 };
 
index 52ddae5a1e33c5f87fcdb42282689c15432750d5..bc7c9007303fcf11d640661a4c0952f3ba8cfc40 100644 (file)
@@ -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);
index 002c8ab9f2daf1d86570776ac05765fe6eae6e8f..f4171b01e225988fafc7e698e7a7a1b93ea15c6e 100644 (file)
@@ -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
 };
 
index acb7e0d1bb149d479c8ccd859a5805280a571451..b4c822ddfa232364c4eb086697757af9ffcf05df 100644 (file)
@@ -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);
index 5e5536a9f8149c5883eb0c80b26c4f82c31ae308..35860260c98e533d3487f65c6ffcbb4358ff5b83 100644 (file)
@@ -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,
index 83935377a688e3c75a6a85667f77b7e989627528..ac871003afb2936467e8cf20bfdbc1ad7ac3d22e 100644 (file)
@@ -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);
 
 }
 
index b65e13291f5a0c3fc277bdb1a80cdd0d00c45f00..c7be5c02924d56c203ada77f2d04e171c123c00d 100644 (file)
@@ -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);
 }
 
index e6d1f8047c69e94e6203f33d8181ae22baf7b983..dfab24646479cdd98db3503a80bdc2d708de2cb8 100644 (file)
@@ -69,7 +69,7 @@ int nvram_parse_mac_addr(const char *nvram, unsigned nvram_len,
 
        ret = 0;
 
- free:
+free:
        vfree(buf);
        return ret;
 }
index d89505f1b4b3ccd3aef5fd10b9b927a8e56962f5..658fdd023e131adf1fe55633cfa3894a5f39c7a6 100644 (file)
@@ -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;
index 126d5b3e69524399539c039fc8bf61ebb0fe74f4..ba41b38b961541f3c10366a9bf9acc5f8492e093 100644 (file)
@@ -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
index cf198d2bfa158c2e74129bf134d14ca15976f5fd..b0eb22840cb4020f42cfcb46c33b8ef74ce98396 100644 (file)
@@ -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;
index b6398061996ec39646085ac576a3c7c363124857..4ef50145e2ce02b58f25c59ff9dd3fd24fc7c1f9 100644 (file)
@@ -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;
 }
index 0c2d30ef76332f4496b03fe4dd51c6c5b6a47f68..a5fec5ca7d1cffc1e6f31efbc1e27d6fc71772e2 100644 (file)
@@ -179,15 +179,15 @@ static int __devinit nxp_74hc153_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, nxp);
        return 0;
 
- err_free_2y:
+err_free_2y:
        gpio_free(pdata->gpio_pin_2y);
- err_free_1y:
+err_free_1y:
        gpio_free(pdata->gpio_pin_1y);
- err_free_s1:
+err_free_s1:
        gpio_free(pdata->gpio_pin_s1);
- err_free_s0:
+err_free_s0:
        gpio_free(pdata->gpio_pin_s0);
- err_free_nxp:
+err_free_nxp:
        kfree(nxp);
        return err;
 }
index 6d9920129359e93b5d9bd3388d723c6646ab5a8e..531ac6b51d8eb2124567473e247ddc9dce63f460 100644 (file)
@@ -90,7 +90,7 @@ static int __devinit rb750_led_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, drvdata);
        return 0;
 
- err:
+err:
        for (i = i - 1; i >= 0; i--)
                led_classdev_unregister(&drvdata->led_devs[i].cdev);
 
index 1a55f4a5447cb162a2e5416336feeb616ff3eb3d..51ba7f578001daf3ddcd203d2ce9aba05fcad98e 100644 (file)
@@ -227,7 +227,7 @@ static int ar91xx_flash_probe(struct platform_device *pdev)
        add_mtd_device(info->mtd);
        return 0;
 
- err_out:
+err_out:
        ar91xx_flash_remove(pdev);
        return err;
 }
@@ -246,7 +246,7 @@ static int ar91xx_flash_suspend(struct platform_device *dev, pm_message_t state)
 
        return 0;
 
- fail:
+fail:
        if (info->mtd->suspend) {
                BUG_ON(!info->mtd->resume);
                info->mtd->resume(info->mtd);
index ca9d8adb59be6298ebde9d091592b76a64da4b4c..17920e9f425a0db03ed2e14862b6c3e5ff9456f6 100644 (file)
@@ -244,21 +244,21 @@ static int __init rb4xx_nand_probe(struct platform_device *pdev)
 
        return 0;
 
- err_release_nand:
+err_release_nand:
        nand_release(&info->mtd);
- err_set_drvdata:
+err_set_drvdata:
        platform_set_drvdata(pdev, NULL);
- err_free_info:
+err_free_info:
        kfree(info);
- err_free_gpio_nce:
+err_free_gpio_nce:
        gpio_free(RB4XX_NAND_GPIO_NCE);
- err_free_gpio_cle:
+err_free_gpio_cle:
        gpio_free(RB4XX_NAND_GPIO_CLE);
- err_free_gpio_ale:
+err_free_gpio_ale:
        gpio_free(RB4XX_NAND_GPIO_ALE);
- err_free_gpio_ready:
+err_free_gpio_ready:
        gpio_free(RB4XX_NAND_GPIO_READY);
- err:
+err:
        return ret;
 }
 
index badc7819b035302d99dbd14338a8c39f170a56a0..07bf8e1299438e461d5f908ef538c3960e6c597b 100644 (file)
@@ -313,11 +313,11 @@ static int __init rb750_nand_probe(struct platform_device *pdev)
 
        return 0;
 
- err_release_nand:
+err_release_nand:
        nand_release(&info->mtd);
- err_set_drvdata:
+err_set_drvdata:
        platform_set_drvdata(pdev, NULL);
- err_free_info:
+err_free_info:
        kfree(info);
        return ret;
 }
index e42b3d401988bec0217916b65b2641a8be7a2646..6cd78b628f025a2228735fcf5f5ebd508891ef7d 100644 (file)
@@ -158,9 +158,9 @@ static int wrt160nl_parse_partitions(struct mtd_info *master,
        *pparts = trx_parts;
        ret = TRX_PARTS;
 
- free_hdr:
+free_hdr:
        vfree(header);
- out:
+out:
        return ret;
 }
 
index be14e7e08bda0bd753a8890510dbfdca244f2f94..b370cf6bccd63c3547612be35da2e01be4a9adeb 100644 (file)
@@ -89,7 +89,7 @@ struct ag71xx_desc {
 
 struct ag71xx_buf {
        struct sk_buff          *skb;
-       struct ag71xx_desc      *desc;
+       struct ag71xx_desc      *desc;
        dma_addr_t              dma_addr;
        u32                     pad;
 };
@@ -162,7 +162,7 @@ struct ag71xx {
 
        unsigned int            link;
        unsigned int            speed;
-       int                     duplex;
+       int                     duplex;
 
        struct work_struct      restart_work;
        struct timer_list       oom_timer;
index fec9a87ba38ae1d4bb6042f3463a95115d5c6862..a8e68404b93de912162b906d790670540ca05adc 100644 (file)
@@ -414,7 +414,7 @@ static int ar7240sw_reset(struct ar7240sw *as)
                           AR7240_MASK_CTRL_SOFT_RESET);
 
        ret = ar7240sw_reg_wait(as, AR7240_REG_MASK_CTRL,
-                               AR7240_MASK_CTRL_SOFT_RESET, 0, 1000);
+                               AR7240_MASK_CTRL_SOFT_RESET, 0, 1000);
        return ret;
 }
 
@@ -518,7 +518,7 @@ static int ar7240_set_addr(struct ar7240sw *as, u8 *addr)
 
 static int
 ar7240_set_vid(struct switch_dev *dev, const struct switch_attr *attr,
-                struct switch_val *val)
+               struct switch_val *val)
 {
        struct ar7240sw *as = sw_to_ar7240(dev);
        as->vlan_id[val->port_vlan] = val->value.i;
@@ -527,7 +527,7 @@ ar7240_set_vid(struct switch_dev *dev, const struct switch_attr *attr,
 
 static int
 ar7240_get_vid(struct switch_dev *dev, const struct switch_attr *attr,
-                struct switch_val *val)
+               struct switch_val *val)
 {
        struct ar7240sw *as = sw_to_ar7240(dev);
        val->value.i = as->vlan_id[val->port_vlan];
@@ -613,7 +613,7 @@ ar7240_set_ports(struct switch_dev *dev, struct switch_val *val)
 
 static int
 ar7240_set_vlan(struct switch_dev *dev, const struct switch_attr *attr,
-                struct switch_val *val)
+               struct switch_val *val)
 {
        struct ar7240sw *as = sw_to_ar7240(dev);
        as->vlan = !!val->value.i;
@@ -622,7 +622,7 @@ ar7240_set_vlan(struct switch_dev *dev, const struct switch_attr *attr,
 
 static int
 ar7240_get_vlan(struct switch_dev *dev, const struct switch_attr *attr,
-                struct switch_val *val)
+               struct switch_val *val)
 {
        struct ar7240sw *as = sw_to_ar7240(dev);
        val->value.i = as->vlan;
@@ -790,8 +790,8 @@ static struct ar7240sw *ar7240_probe(struct ag71xx *ag)
        swdev->ops = &ar7240_ops;
 
        if (register_switch(&as->swdev, ag->dev) < 0) {
-           kfree(as);
-           return NULL;
+               kfree(as);
+               return NULL;
        }
 
        printk("%s: Found an AR7240 built-in switch\n", ag->dev->name);
index c37265e7b163bf8707dd6828ab32f7fd90d0af56..8111cad3557dd2d4a5e06ed9b4e528db2bfd024d 100644 (file)
@@ -44,8 +44,8 @@ void ag71xx_debugfs_update_int_stats(struct ag71xx *ag, u32 status)
 static ssize_t read_file_int_stats(struct file *file, char __user *user_buf,
                                   size_t count, loff_t *ppos)
 {
-#define PR_INT_STAT(_label, _field)                                    \
-       len += snprintf(buf + len, sizeof(buf) - len,                   \
+#define PR_INT_STAT(_label, _field)                                    \
+       len += snprintf(buf + len, sizeof(buf) - len,                   \
                "%20s: %10lu\n", _label, ag->debug.int_stats._field);
 
        struct ag71xx *ag = file->private_data;
@@ -173,7 +173,7 @@ int ag71xx_debugfs_init(struct ag71xx *ag)
 
        return 0;
 
- err:
+err:
        ag71xx_debugfs_exit(ag);
        return -ENOMEM;
 }
index 31c8ee4892c4629c30c051ebf62445cfbf1d1bec..831bba8f9b5f6f16d82027f24da1a93749b2836f 100644 (file)
 #include "ag71xx.h"
 
 #define AG71XX_DEFAULT_MSG_ENABLE      \
-       ( NETIF_MSG_DRV                 \
+       (NETIF_MSG_DRV                  \
        | NETIF_MSG_PROBE               \
        | NETIF_MSG_LINK                \
        | NETIF_MSG_TIMER               \
        | NETIF_MSG_IFDOWN              \
        | NETIF_MSG_IFUP                \
        | NETIF_MSG_RX_ERR              \
-       | NETIF_MSG_TX_ERR )
+       | NETIF_MSG_TX_ERR)
 
 static int ag71xx_msg_level = -1;
 
@@ -126,7 +126,7 @@ static int ag71xx_ring_alloc(struct ag71xx_ring *ring, unsigned int size)
 
        return 0;
 
- err:
+err:
        return err;
 }
 
@@ -599,7 +599,7 @@ static int ag71xx_open(struct net_device *dev)
 
        return 0;
 
- err:
+err:
        ag71xx_rings_cleanup(ag);
        return ret;
 }
@@ -676,7 +676,7 @@ static netdev_tx_t ag71xx_hard_start_xmit(struct sk_buff *skb,
 
        return NETDEV_TX_OK;
 
- err_drop:
+err_drop:
        dev->stats.tx_dropped++;
 
        dev_kfree_skb(skb);
@@ -908,12 +908,12 @@ static int ag71xx_poll(struct napi_struct *napi, int limit)
                return rx_done;
        }
 
- more:
+more:
        DBG("%s: stay in polling mode, rx=%d, tx=%d, limit=%d\n",
                        dev->name, rx_done, tx_done, limit);
        return rx_done;
 
- oom:
+oom:
        if (netif_msg_rx_err(ag))
                printk(KERN_DEBUG "%s: out of memory\n", dev->name);
 
@@ -1105,19 +1105,19 @@ static int __devinit ag71xx_probe(struct platform_device *pdev)
 
        return 0;
 
- err_phy_disconnect:
+err_phy_disconnect:
        ag71xx_phy_disconnect(ag);
- err_unregister_netdev:
+err_unregister_netdev:
        unregister_netdev(dev);
- err_free_irq:
+err_free_irq:
        free_irq(dev->irq, dev);
- err_unmap_mii_ctrl:
+err_unmap_mii_ctrl:
        iounmap(ag->mii_ctrl);
- err_unmap_base:
+err_unmap_base:
        iounmap(ag->mac_base);
- err_free_dev:
+err_free_dev:
        kfree(dev);
- err_out:
+err_out:
        platform_set_drvdata(pdev, NULL);
        return err;
 }
@@ -1168,11 +1168,11 @@ static int __init ag71xx_module_init(void)
 
        return 0;
 
- err_mdio_exit:
+err_mdio_exit:
        ag71xx_mdio_driver_exit();
- err_debugfs_exit:
+err_debugfs_exit:
        ag71xx_debugfs_root_exit();
- err_out:
+err_out:
        return ret;
 }
 
index eda0b5ee5c8849c78a6eeb02a9180a8b609b3265..2664429e76f7f1fcf8f3a8a4a10a7d92701fbb94 100644 (file)
@@ -73,7 +73,7 @@ static int ag71xx_mdio_mii_read(struct ag71xx_mdio *am, int addr, int reg)
 
        DBG("mii_read: addr=%04x, reg=%04x, value=%04x\n", addr, reg, ret);
 
- out:
+out:
        return ret;
 }
 
@@ -199,13 +199,13 @@ static int __devinit ag71xx_mdio_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, am);
        return 0;
 
- err_free_bus:
+err_free_bus:
        mdiobus_free(am->mii_bus);
- err_iounmap:
+err_iounmap:
        iounmap(am->mdio_base);
- err_free_mdio:
+err_free_mdio:
        kfree(am);
- err_out:
+err_out:
        return err;
 }
 
index eada5fe9cb7ec10954f77391a1898f3026ca194f..de8780dbbd360896a792301c7843e233f12312aa 100644 (file)
@@ -37,8 +37,8 @@
 #define AP83_SPI_GPIO_MISO     3
 
 struct ap83_spi {
-       struct  spi_bitbang     bitbang;
-       void __iomem            *base;
+       struct  spi_bitbang     bitbang;
+       void __iomem            *base;
        u32                     addr;
 
        struct platform_device  *pdev;
@@ -230,15 +230,15 @@ static int ap83_spi_probe(struct platform_device *pdev)
 
        return 0;
 
- err_unmap:
+err_unmap:
        iounmap(sp->base);
- err_spi_put:
+err_spi_put:
        platform_set_drvdata(pdev, NULL);
        spi_master_put(sp->bitbang.master);
 
- err_free_cs:
+err_free_cs:
        gpio_free(AP83_SPI_GPIO_CS);
- err_free_miso:
+err_free_miso:
        gpio_free(AP83_SPI_GPIO_MISO);
        return ret;
 }
index ac60170ebf8f148462eb0b9d828979dcc88b719f..f548cde6d41894fbc416e87f4213dbb02581aaf6 100644 (file)
 #undef PER_BIT_READ
 
 struct ar71xx_spi {
-       struct  spi_bitbang     bitbang;
+       struct  spi_bitbang     bitbang;
        u32                     ioc_base;
        u32                     reg_ctrl;
 
-       void __iomem            *base;
+       void __iomem            *base;
 
        struct platform_device  *pdev;
        u32                     (*get_ioc_base)(u8 chip_select, int cs_high,
@@ -234,7 +234,7 @@ static int ar71xx_spi_probe(struct platform_device *pdev)
                return 0;
 
        iounmap(sp->base);
- err1:
+err1:
        platform_set_drvdata(pdev, NULL);
        spi_master_put(sp->bitbang.master);
 
index 32e6ea6426463e50b45f5d2ec0966bc85422e39f..ee5209905e7eda91c0ff765dd6c106342e1429e7 100644 (file)
 #undef PER_BIT_READ
 
 struct ar71xx_spi {
-       struct  spi_bitbang     bitbang;
+       struct  spi_bitbang     bitbang;
        u32                     ioc_base;
        u32                     reg_ctrl;
 
-       void __iomem            *base;
+       void __iomem            *base;
 
        struct platform_device  *pdev;
 };
@@ -252,7 +252,7 @@ static int pb44_spi_probe(struct platform_device *pdev)
                return 0;
 
        iounmap(sp->base);
- err1:
+err1:
        platform_set_drvdata(pdev, NULL);
        spi_master_put(sp->bitbang.master);
 
index 731f501547b58087dfb2c650b11574bb30e1dc2a..2b2299991565ecff8eaa8b0da7cbf5b82bfee2cd 100644 (file)
@@ -247,7 +247,7 @@ static int rb4xx_spi_msg(struct rb4xx_spi *rbspi, struct spi_message *m)
        __raw_writel(SPI_CTRL_FASTEST, base + SPI_REG_CTRL);
        do_spi_init(m->spi);
 
-       list_for_each_entry (t, &m->transfers, transfer_list) {
+       list_for_each_entry(t, &m->transfers, transfer_list) {
                int len;
 
                len = rb4xx_spi_txrx(base, t);
@@ -338,13 +338,13 @@ static int rb4xx_spi_setup(struct spi_device *spi)
 
        if (spi->mode & ~(SPI_CS_HIGH)) {
                dev_err(&spi->dev, "mode %x not supported\n",
-                       (unsigned) spi->mode);
+                       (unsigned) spi->mode);
                return -EINVAL;
        }
 
        if (spi->bits_per_word != 8 && spi->bits_per_word != 0) {
                dev_err(&spi->dev, "bits_per_word %u not supported\n",
-                       (unsigned) spi->bits_per_word);
+                       (unsigned) spi->bits_per_word);
                return -EINVAL;
        }
 
@@ -432,12 +432,12 @@ static int rb4xx_spi_probe(struct platform_device *pdev)
 
        return 0;
 
- err_iounmap:
+err_iounmap:
        iounmap(rbspi->base);
- err_put_master:
+err_put_master:
        platform_set_drvdata(pdev, NULL);
        spi_master_put(master);
- err_out:
+err_out:
        return err;
 }
 
@@ -455,10 +455,10 @@ static int rb4xx_spi_remove(struct platform_device *pdev)
 static struct platform_driver rb4xx_spi_drv = {
        .probe          = rb4xx_spi_probe,
        .remove         = rb4xx_spi_remove,
-        .driver                = {
+       .driver         = {
                .name   = DRV_NAME,
                .owner  = THIS_MODULE,
-        },
+       },
 };
 
 static int __init rb4xx_spi_init(void)
index 8b34c1b23dc4e2de22b5f64941cfacf971dec9cc..c0040a3e6a638ca01b8182cde671f9b3cae9904c 100644 (file)
@@ -393,7 +393,7 @@ static int __devinit rb4xx_cpld_probe(struct spi_device *spi)
 
        return 0;
 
- err_drvdata:
+err_drvdata:
        dev_set_drvdata(&spi->dev, NULL);
        kfree(cpld);
 
index c16707ed8ca0955f23a51cfda503cd15bc8f2143..3935650038b4b7edd4aa9dd1e8374d99bb6d44db 100644 (file)
@@ -56,8 +56,8 @@
 #define VSC73XX_MAC_CFG_WEXC_DIS       (1 << 31)
 #define VSC73XX_MAC_CFG_PORT_RST       (1 << 29)
 #define VSC73XX_MAC_CFG_TX_EN          (1 << 28)
-#define VSC73XX_MAC_CFG_SEED_LOAD              (1 << 27)
-#define VSC73XX_MAC_CFG_FDX            (1 << 18)
+#define VSC73XX_MAC_CFG_SEED_LOAD      (1 << 27)
+#define VSC73XX_MAC_CFG_FDX            (1 << 18)
 #define VSC73XX_MAC_CFG_GIGE           (1 << 17)
 #define VSC73XX_MAC_CFG_RX_EN          (1 << 16)
 #define VSC73XX_MAC_CFG_VLAN_DBLAWR    (1 << 15)
@@ -430,7 +430,7 @@ static int vsc7385_upload_ucode(struct vsc7385 *vsc)
 
        rc = vsc7385_icpu_start(vsc);
 
- out:
+out:
        release_firmware(firmware);
        return rc;
 }
@@ -475,7 +475,7 @@ static int vsc7385_setup(struct vsc7385 *vsc)
 
        return 0;
 
- err:
+err:
        return err;
 }
 
@@ -520,7 +520,7 @@ static int vsc7385_detect(struct vsc7385 *vsc)
 
        rev = (t >> VSC73XX_ICPU_CHIPID_REV_SHIFT) &
              VSC73XX_ICPU_CHIPID_REV_MASK;
-       dev_info(&spi->dev, "VSC%04X (rev. %d) switch found \n", id, rev);
+       dev_info(&spi->dev, "VSC%04X (rev. %d) switch found\n", id, rev);
 
        return 0;
 }
@@ -536,13 +536,13 @@ static int __devinit vsc7385_probe(struct spi_device *spi)
        pdata = spi->dev.platform_data;
        if (!pdata) {
                dev_err(&spi->dev, "no platform data specified\n");
-               return-ENODEV;
+               return -ENODEV;
        }
 
        vsc = kzalloc(sizeof(*vsc), GFP_KERNEL);
        if (!vsc) {
                dev_err(&spi->dev, "no memory for private data\n");
-               return-ENOMEM;
+               return -ENOMEM;
        }
 
        mutex_init(&vsc->lock);
@@ -554,13 +554,13 @@ static int __devinit vsc7385_probe(struct spi_device *spi)
        spi->bits_per_word = 8;
        err = spi_setup(spi);
        if (err) {
-               dev_err(&spi->dev, "spi_setup failed, err=%d \n", err);
+               dev_err(&spi->dev, "spi_setup failed, err=%d\n", err);
                goto err_drvdata;
        }
 
        err = vsc7385_detect(vsc);
        if (err) {
-               dev_err(&spi->dev, "no chip found, err=%d \n", err);
+               dev_err(&spi->dev, "no chip found, err=%d\n", err);
                goto err_drvdata;
        }
 
@@ -574,7 +574,7 @@ static int __devinit vsc7385_probe(struct spi_device *spi)
 
        return 0;
 
- err_drvdata:
+err_drvdata:
        dev_set_drvdata(&spi->dev, NULL);
        kfree(vsc);
        return err;
index 01433c2fbec68ead80f219ba420dfa226524c2e6..b08db5baf6fd1eed88971e26093b7b43cf1d28bc 100644 (file)
@@ -117,12 +117,12 @@ static int ehci_ar71xx_probe(const struct hc_driver *driver,
 
        return 0;
 
- err_iounmap:
+err_iounmap:
        iounmap(hcd->regs);
 
- err_release_region:
+err_release_region:
        release_mem_region(hcd->rsrc_start, hcd->rsrc_len);
- err_put_hcd:
+err_put_hcd:
        usb_put_hcd(hcd);
        return ret;
 }
index 48457e013b769287d0d69131cc83edb9dd2a45e5..1ab33f3bf449d89ec4c96e1becf9622bd97b7f5d 100644 (file)
@@ -70,11 +70,11 @@ static int usb_hcd_ar71xx_probe(const struct hc_driver *driver,
 
        return 0;
 
- err_stop_hcd:
+err_stop_hcd:
        iounmap(hcd->regs);
- err_release_region:
+err_release_region:
        release_mem_region(hcd->rsrc_start, hcd->rsrc_len);
- err_put_hcd:
+err_put_hcd:
        usb_put_hcd(hcd);
        return ret;
 }
@@ -102,7 +102,7 @@ static int __devinit ohci_ar71xx_start(struct usb_hcd *hcd)
 
        return 0;
 
- err:
+err:
        ohci_stop(hcd);
        return ret;
 }
index 5f8104bcdf15f4d5bda08ad0ce437c577ca9080c..6b5ff21a9b068f034b6236ab99dfe758e9c6bc88 100644 (file)
@@ -115,7 +115,7 @@ static int ar71xx_wdt_release(struct inode *inode, struct file *file)
 static ssize_t ar71xx_wdt_write(struct file *file, const char *data,
                                size_t len, loff_t *ppos)
 {
-        if (len) {
+       if (len) {
                if (!nowayout) {
                        size_t i;
 
@@ -142,7 +142,7 @@ static ssize_t ar71xx_wdt_write(struct file *file, const char *data,
 static struct watchdog_info ar71xx_wdt_info = {
        .options                = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING |
                                  WDIOF_MAGICCLOSE | WDIOF_CARDRESET,
-       .firmware_version       = 0,
+       .firmware_version       = 0,
        .identity               = "AR71XX watchdog",
 };
 
@@ -226,7 +226,7 @@ static int __devinit ar71xx_wdt_probe(struct platform_device *pdev)
        printk(KERN_INFO DRV_DESC " version " DRV_VERSION "\n");
 
        printk(KERN_DEBUG DRV_NAME ": timeout=%d secs (max=%d)\n",
-                                       wdt_timeout, max_timeout);
+                                       wdt_timeout, max_timeout);
 
        return 0;
 
index 90e05c83d2e1ee5fdee5c13b12cfc0c20d6e9148..1072ad7941c866adf5cc17e358ed48a425633c1a 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 struct vsc7385_platform_data {
-       void            (* reset)(void);
+       void            (*reset)(void);
        char            *ucode_name;
        struct {
                u32     tx_ipg:5;