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

Commit c83cfc9c authored by Ralf Baechle's avatar Ralf Baechle
Browse files

Get rid of early_init. There's more need to make this form of


initialization actually useful and as is certainly unmergable with
upstream.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 8c936508
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ extern void au1xxx_time_init(void);
extern void au1xxx_timer_setup(struct irqaction *irq);
extern void set_cpuspec(void);

static int __init au1x00_setup(void)
void __init plat_setup(void)
{
	struct	cpu_spec *sp;
	char *argptr;
@@ -153,12 +153,8 @@ static int __init au1x00_setup(void)
	au_sync();
	while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_T0S);
	au_writel(0, SYS_TOYTRIM);

	return 0;
}

early_initcall(au1x00_setup);

#if defined(CONFIG_64BIT_PHYS_ADDR)
/* This routine should be valid for all Au1x based boards */
phys_t fixup_bigphys_addr(phys_t phys_addr, phys_t size)
+1 −3
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ static struct pci_controller cobalt_pci_controller = {
	.io_offset	= 0x00001000UL - GT64111_IO_BASE
};

static void __init cobalt_setup(void)
void __init plat_setup(void)
{
	unsigned int devfn = PCI_DEVFN(COBALT_PCICONF_VIA, 0);
	int i;
@@ -125,8 +125,6 @@ static void __init cobalt_setup(void)
#endif
}

early_initcall(cobalt_setup);

/*
 * Prom init. We read our one and only communication with the firmware.
 * Grab the amount of installed memory
+1 −3
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ static void __init ddb_time_init(void)



static void __init ddb5074_setup(void)
void __init plat_setup(void)
{
	set_io_port_base(NILE4_PCI_IO_BASE);
	isa_slot_offset = NILE4_PCI_MEM_BASE;
@@ -106,8 +106,6 @@ static void __init ddb5074_setup(void)
	panic_timeout = 180;
}

early_initcall(ddb5074_setup);

#define USE_NILE4_SERIAL	0

#if USE_NILE4_SERIAL
+1 −3
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ static struct {

static void ddb5476_board_init(void);

static void __init ddb5476_setup(void)
void __init plat_setup(void)
{
	set_io_port_base(KSEG1ADDR(DDB_PCI_IO_BASE));

@@ -158,8 +158,6 @@ static void __init ddb5476_setup(void)
	ddb5476_board_init();
}

early_initcall(ddb5476_setup);

/*
 * We don't trust bios.  We essentially does hardware re-initialization
 * as complete as possible, as far as we know we can safely do.
+1 −5
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ static void ddb5477_board_init(void);
extern struct pci_controller ddb5477_ext_controller;
extern struct pci_controller ddb5477_io_controller;

static int  ddb5477_setup(void)
void __init plat_setup(void)
{
	/* initialize board - we don't trust the loader */
        ddb5477_board_init();
@@ -193,12 +193,8 @@ static int ddb5477_setup(void)

	register_pci_controller (&ddb5477_ext_controller);
	register_pci_controller (&ddb5477_io_controller);

	return 0;
}

early_initcall(ddb5477_setup);

static void __init ddb5477_board_init(void)
{
	/* ----------- setup PDARs ------------ */
Loading