diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-04-20 06:40:36 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-04-20 06:40:36 +0000 |
commit | dd4dcd736d9fffaeb400311d3b7945ed33e52e50 (patch) | |
tree | fd6c26b8d0853fb9f06af10fc1d187c0f863f87c /target/linux/atheros/files/arch | |
parent | 4668cb866358f1ebab1d6867a0ba422e4a5b18b7 (diff) |
[atheros] nuke trailing whitespaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10872 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/files/arch')
6 files changed, 19 insertions, 19 deletions
diff --git a/target/linux/atheros/files/arch/mips/atheros/ar5312/irq.c b/target/linux/atheros/files/arch/mips/atheros/ar5312/irq.c index 95bcf3a458..e2117a2ddd 100644 --- a/target/linux/atheros/files/arch/mips/atheros/ar5312/irq.c +++ b/target/linux/atheros/files/arch/mips/atheros/ar5312/irq.c @@ -56,7 +56,7 @@ asmlinkage void ar5312_irq_dispatch(void) } else if (ar531x_misc_intrs & AR531X_ISR_AHBPROC) do_IRQ(AR531X_MISC_IRQ_AHB_PROC); else if (ar531x_misc_intrs & AR531X_ISR_GPIO) - ar5312_gpio_irq_dispatch(); + ar5312_gpio_irq_dispatch(); else if ((ar531x_misc_intrs & AR531X_ISR_UART0)) do_IRQ(AR531X_MISC_IRQ_UART0); else if (ar531x_misc_intrs & AR531X_ISR_WD) @@ -140,7 +140,7 @@ static irqreturn_t ar5312_ahb_proc_handler(int cpl, void *dev_id) printk("AHB interrupt: PROCADDR=0x%8.8x PROC1=0x%8.8x DMAADDR=0x%8.8x DMA1=0x%8.8x\n", procAddr, proc1, dmaAddr, dma1); - + machine_restart("AHB error"); /* Catastrophic failure */ return IRQ_HANDLED; } diff --git a/target/linux/atheros/files/arch/mips/atheros/ar5315/irq.c b/target/linux/atheros/files/arch/mips/atheros/ar5315/irq.c index 621c7fc0b8..ed784ba88a 100644 --- a/target/linux/atheros/files/arch/mips/atheros/ar5315/irq.c +++ b/target/linux/atheros/files/arch/mips/atheros/ar5315/irq.c @@ -89,7 +89,7 @@ static void ar5315_gpio_intr_enable(unsigned int irq) /* reconfigure GPIO line as input */ sysRegMask(AR5315_GPIO_CR, AR5315_GPIO_CR_M(gpio), AR5315_GPIO_CR_I(gpio)); - + /* Enable interrupt with edge detection */ sysRegMask(AR5315_GPIO_INT, AR5315_GPIO_INT_M | AR5315_GPIO_INT_LVL_M, gpio | AR5315_GPIO_INT_LVL(3)); } @@ -203,7 +203,7 @@ ar5315_misc_intr_disable(unsigned int irq) case AR531X_MISC_IRQ_SPI: imr &= ~AR5315_ISR_SPI; break; - + case AR531X_MISC_IRQ_TIMER: imr &= (~AR5315_ISR_TIMER); break; diff --git a/target/linux/atheros/files/arch/mips/atheros/board.c b/target/linux/atheros/files/arch/mips/atheros/board.c index 59aa134a3f..1b1e04fcee 100644 --- a/target/linux/atheros/files/arch/mips/atheros/board.c +++ b/target/linux/atheros/files/arch/mips/atheros/board.c @@ -51,7 +51,7 @@ static u8 *find_board_config(char *flash_limit) printk("WARNING: No board configuration data found!\n"); addr = NULL; } - + return addr; } @@ -59,8 +59,8 @@ static u8 *find_radio_config(char *flash_limit, char *board_config) { int dataFound; u32 radio_config; - - /* + + /* * Now find the start of Radio Configuration data, using heuristics: * Search forward from Board Configuration data by 0x1000 bytes * at a time until we find non-0xffffffff. @@ -123,14 +123,14 @@ int __init ar531x_find_config(char *flash_limit) printk("Radio config found at offset 0x%x(0x%x)\n", rcfg - bcfg, radio_config - board_config); rcfg_size = BOARD_CONFIG_BUFSZ - ((rcfg - bcfg) & (BOARD_CONFIG_BUFSZ - 1)); memcpy(radio_config, rcfg, rcfg_size); - + return 0; } void __init serial_setup(unsigned long mapbase, unsigned int uartclk) { struct uart_port s; - + memset(&s, 0, sizeof(s)); s.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST; @@ -162,7 +162,7 @@ const char *get_system_type(void) case MACH_ATHEROS_AR2312: return "Atheros AR2312"; - + case MACH_ATHEROS_AR2313: return "Atheros AR2313"; #endif @@ -225,7 +225,7 @@ static int __init ar531x_register_gpiodev(void) struct platform_device *pdev; printk(KERN_INFO "ar531x: Registering GPIODEV device\n"); - + pdev = platform_device_register_simple("GPIODEV", 0, &res, 1); if (!pdev) { diff --git a/target/linux/atheros/files/arch/mips/atheros/gpio.c b/target/linux/atheros/files/arch/mips/atheros/gpio.c index 5e34c857cc..26fba06446 100644 --- a/target/linux/atheros/files/arch/mips/atheros/gpio.c +++ b/target/linux/atheros/files/arch/mips/atheros/gpio.c @@ -27,7 +27,7 @@ #include <asm/irq_cpu.h> #include <asm/gpio.h> #include "ar531x.h" -/* +/* GPIO Interrupt Support Make use of request_irq() and the function gpio_to_irq() to trap gpio events */ @@ -147,7 +147,7 @@ static void ar5315_gpio_intr_enable(unsigned int irq) { sysRegWrite(AR5315_GPIO_CR, reg); (void)sysRegRead(AR5315_GPIO_CR); /* flush write to hardware */ - /* Locate a free register slot to enable gpio intr + /* Locate a free register slot to enable gpio intr will fail silently if no more slots are available */ reg = sysRegRead(AR5315_GPIO_INT); diff --git a/target/linux/atheros/files/arch/mips/atheros/prom.c b/target/linux/atheros/files/arch/mips/atheros/prom.c index 73c66aca50..82617cdd3c 100644 --- a/target/linux/atheros/files/arch/mips/atheros/prom.c +++ b/target/linux/atheros/files/arch/mips/atheros/prom.c @@ -35,7 +35,7 @@ void __init prom_init(void) DO_AR5315(ar5315_prom_init();) #if 0 argv = (char **)fw_arg1; - /* RedBoot desired command line is argv[1] */ + /* RedBoot desired command line is argv[1] */ strcat(arcs_cmdline, argv[1]); #endif } diff --git a/target/linux/atheros/files/arch/mips/atheros/reset.c b/target/linux/atheros/files/arch/mips/atheros/reset.c index 3230aa1155..2342de81e0 100644 --- a/target/linux/atheros/files/arch/mips/atheros/reset.c +++ b/target/linux/atheros/files/arch/mips/atheros/reset.c @@ -37,7 +37,7 @@ static void hotplug_button(struct work_struct *wq) size_t len; char *scratch, *s; char buf[128]; - + event = container_of(wq, struct event_t, wq); if (!uevent_sock) goto done; @@ -48,7 +48,7 @@ static void hotplug_button(struct work_struct *wq) skb = alloc_skb(len + 2048, GFP_KERNEL); if (!skb) goto done; - + /* add header */ scratch = skb_put(skb, len); sprintf(scratch, "%s@",s); @@ -80,7 +80,7 @@ static irqreturn_t button_handler(int irq, void *dev_id) event = (struct event_t *) kzalloc(sizeof(struct event_t), GFP_ATOMIC); if (!event) return IRQ_NONE; - + pressed = !pressed; DO_AR5315(gpio = sysRegRead(AR5315_GPIO_DI);) @@ -99,7 +99,7 @@ static irqreturn_t button_handler(int irq, void *dev_id) void ar531x_disable_reset_button(void) { - disable_irq(AR531X_RESET_GPIO_IRQ); + disable_irq(AR531X_RESET_GPIO_IRQ); } EXPORT_SYMBOL(ar531x_disable_reset_button); @@ -109,7 +109,7 @@ int __init ar531x_init_reset(void) bcfg = (struct ar531x_boarddata *) board_config; seen = jiffies; - + request_irq(AR531X_RESET_GPIO_IRQ, &button_handler, IRQF_SAMPLE_RANDOM, "ar531x_reset", NULL); return 0; |