diff options
Diffstat (limited to 'arch/mips/sgi-ip22')
-rw-r--r-- | arch/mips/sgi-ip22/ip22-platform.c | 3 | ||||
-rw-r--r-- | arch/mips/sgi-ip22/ip28-berr.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/arch/mips/sgi-ip22/ip22-platform.c b/arch/mips/sgi-ip22/ip22-platform.c index fc6df96305ed..60141235ec40 100644 --- a/arch/mips/sgi-ip22/ip22-platform.c +++ b/arch/mips/sgi-ip22/ip22-platform.c | |||
@@ -188,8 +188,7 @@ static int __init sgi_button_devinit(void) | |||
188 | if (ip22_is_fullhouse()) | 188 | if (ip22_is_fullhouse()) |
189 | return 0; /* full house has no volume buttons */ | 189 | return 0; /* full house has no volume buttons */ |
190 | 190 | ||
191 | return IS_ERR(platform_device_register_simple("sgiindybtns", | 191 | return IS_ERR(platform_device_register_simple("sgibtns", -1, NULL, 0)); |
192 | -1, NULL, 0)); | ||
193 | } | 192 | } |
194 | 193 | ||
195 | device_initcall(sgi_button_devinit); | 194 | device_initcall(sgi_button_devinit); |
diff --git a/arch/mips/sgi-ip22/ip28-berr.c b/arch/mips/sgi-ip22/ip28-berr.c index fee7a2e0e538..30e12e2ec4b5 100644 --- a/arch/mips/sgi-ip22/ip28-berr.c +++ b/arch/mips/sgi-ip22/ip28-berr.c | |||
@@ -412,7 +412,7 @@ static int ip28_be_interrupt(const struct pt_regs *regs) | |||
412 | * Now we have an asynchronous bus error, speculatively or DMA caused. | 412 | * Now we have an asynchronous bus error, speculatively or DMA caused. |
413 | * Need to search all DMA descriptors for the error address. | 413 | * Need to search all DMA descriptors for the error address. |
414 | */ | 414 | */ |
415 | for (i = 0; i < ARRAY_SIZE(hpc3); ++i) { | 415 | for (i = 0; i < sizeof(hpc3)/sizeof(struct hpc3_stat); ++i) { |
416 | struct hpc3_stat *hp = (struct hpc3_stat *)&hpc3 + i; | 416 | struct hpc3_stat *hp = (struct hpc3_stat *)&hpc3 + i; |
417 | if ((cpu_err_stat & CPU_ERRMASK) && | 417 | if ((cpu_err_stat & CPU_ERRMASK) && |
418 | (cpu_err_addr == hp->ndptr || cpu_err_addr == hp->cbp)) | 418 | (cpu_err_addr == hp->ndptr || cpu_err_addr == hp->cbp)) |
@@ -421,7 +421,7 @@ static int ip28_be_interrupt(const struct pt_regs *regs) | |||
421 | (gio_err_addr == hp->ndptr || gio_err_addr == hp->cbp)) | 421 | (gio_err_addr == hp->ndptr || gio_err_addr == hp->cbp)) |
422 | break; | 422 | break; |
423 | } | 423 | } |
424 | if (i < ARRAY_SIZE(hpc3)) { | 424 | if (i < sizeof(hpc3)/sizeof(struct hpc3_stat)) { |
425 | struct hpc3_stat *hp = (struct hpc3_stat *)&hpc3 + i; | 425 | struct hpc3_stat *hp = (struct hpc3_stat *)&hpc3 + i; |
426 | printk(KERN_ERR "at DMA addresses: HPC3 @ %08lx:" | 426 | printk(KERN_ERR "at DMA addresses: HPC3 @ %08lx:" |
427 | " ctl %08x, ndp %08x, cbp %08x\n", | 427 | " ctl %08x, ndp %08x, cbp %08x\n", |