Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c1e7a5a authored by Florian Fainelli's avatar Florian Fainelli Committed by Ralf Baechle
Browse files

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: default avatarFlorian Fainelli <florian@openwrt.org>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent e85843a1
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@
#include <bcm63xx_dev_enet.h>
#include <bcm63xx_dev_dsp.h>
#include <bcm63xx_dev_pcmcia.h>
#include <bcm63xx_dev_uart.h>
#include <board_bcm963xx.h>

#define PFX	"board_bcm963xx: "
@@ -794,8 +793,6 @@ int __init board_register_devices(void)
{
	u32 val;

	bcm63xx_uart_register();

	if (board.has_pccard)
		bcm63xx_pcmcia_register();

+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <bcm63xx_cpu.h>
#include <bcm63xx_dev_uart.h>

static struct resource uart_resources[] = {
	{
@@ -39,3 +38,4 @@ int __init bcm63xx_uart_register(void)
	uart_resources[1].start = bcm63xx_get_irq_number(IRQ_UART0);
	return platform_device_register(&bcm63xx_uart_device);
}
arch_initcall(bcm63xx_uart_register);
+0 −6
Original line number Diff line number Diff line
#ifndef BCM63XX_DEV_UART_H_
#define BCM63XX_DEV_UART_H_

int bcm63xx_uart_register(void);

#endif /* BCM63XX_DEV_UART_H_ */