Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43388
b: refs/heads/master
c: 4e4e520
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Nov 30, 2006
1 parent bfa4c02 commit 5a317db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 122214428a7bfab2c09b417f3acdb06222e81748
refs/heads/master: 4e4e520fd52cfdcc7232c4762a78016e7656cad2
18 changes: 7 additions & 11 deletions trunk/arch/arm/mach-versatile/versatile_pb.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,18 @@ static struct amba_device *amba_devs[] __initdata = {
&mmc1_device,
};

static int __init versatile_pb_init(void)
static void __init versatile_pb_init(void)
{
int i;

if (machine_is_versatile_pb()) {
for (i = 0; i < ARRAY_SIZE(amba_devs); i++) {
struct amba_device *d = amba_devs[i];
amba_device_register(d, &iomem_resource);
}
}
versatile_init();

return 0;
for (i = 0; i < ARRAY_SIZE(amba_devs); i++) {
struct amba_device *d = amba_devs[i];
amba_device_register(d, &iomem_resource);
}
}

arch_initcall(versatile_pb_init);

MACHINE_START(VERSATILE_PB, "ARM-Versatile PB")
/* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */
.phys_io = 0x101f1000,
Expand All @@ -105,5 +101,5 @@ MACHINE_START(VERSATILE_PB, "ARM-Versatile PB")
.map_io = versatile_map_io,
.init_irq = versatile_init_irq,
.timer = &versatile_timer,
.init_machine = versatile_init,
.init_machine = versatile_pb_init,
MACHINE_END

0 comments on commit 5a317db

Please sign in to comment.