Skip to content

Commit

Permalink
sparc: Kill sbus_arch_preinit().
Browse files Browse the repository at this point in the history
32-bit sparc just needed it to register the ioport procfs bits, do this
via an arch_initcall() instead.

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed Aug 29, 2008
1 parent d32bcdd commit f8e4d32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
12 changes: 3 additions & 9 deletions arch/sparc/kernel/ioport.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,21 +393,15 @@ void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp)
#endif
}

int __init sbus_arch_preinit(void)
static int __init sparc_register_ioport(void)
{
register_proc_sparc_ioport();

#ifdef CONFIG_SUN4
{
extern void sun4_dvma_init(void);
sun4_dvma_init();
}
return 1;
#else
return 0;
#endif
}

arch_initcall(sparc_register_ioport);

void __init sbus_arch_postinit(void)
{
if (sparc_cpu_model == sun4d) {
Expand Down
5 changes: 0 additions & 5 deletions arch/sparc64/kernel/sbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,11 +655,6 @@ void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp)
sbus_iommu_init(dp->node, sbus);
}

int __init sbus_arch_preinit(void)
{
return 0;
}

void __init sbus_arch_postinit(void)
{
extern void firetruck_init(void);
Expand Down
3 changes: 0 additions & 3 deletions drivers/sbus/sbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ static int __init sbus_init(void)
const char *sbus_name = "sbus";
int num_sbus = 0;

if (sbus_arch_preinit())
return 0;

if (sparc_cpu_model == sun4d)
sbus_name = "sbi";

Expand Down

0 comments on commit f8e4d32

Please sign in to comment.