Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: BCM63xx: Make bcm63xx_uart_register an initfunc

This patch removes the calls to bcm63xx_uart_register in board_bcm963xx.c
and make bcm63xx_uart_register an initfunc. Allows us to remove
bcm63xx_dev_uart.h which was there to make checkpatch.pl happy.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Florian Fainelli and committed by
Ralf Baechle
6c1e7a5a e85843a1

+1 -10
-3
arch/mips/bcm63xx/boards/board_bcm963xx.c
··· 24 24 #include <bcm63xx_dev_enet.h> 25 25 #include <bcm63xx_dev_dsp.h> 26 26 #include <bcm63xx_dev_pcmcia.h> 27 - #include <bcm63xx_dev_uart.h> 28 27 #include <board_bcm963xx.h> 29 28 30 29 #define PFX "board_bcm963xx: " ··· 792 793 int __init board_register_devices(void) 793 794 { 794 795 u32 val; 795 - 796 - bcm63xx_uart_register(); 797 796 798 797 if (board.has_pccard) 799 798 bcm63xx_pcmcia_register();
+1 -1
arch/mips/bcm63xx/dev-uart.c
··· 10 10 #include <linux/kernel.h> 11 11 #include <linux/platform_device.h> 12 12 #include <bcm63xx_cpu.h> 13 - #include <bcm63xx_dev_uart.h> 14 13 15 14 static struct resource uart_resources[] = { 16 15 { ··· 38 39 uart_resources[1].start = bcm63xx_get_irq_number(IRQ_UART0); 39 40 return platform_device_register(&bcm63xx_uart_device); 40 41 } 42 + arch_initcall(bcm63xx_uart_register);
-6
arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_uart.h
··· 1 - #ifndef BCM63XX_DEV_UART_H_ 2 - #define BCM63XX_DEV_UART_H_ 3 - 4 - int bcm63xx_uart_register(void); 5 - 6 - #endif /* BCM63XX_DEV_UART_H_ */