mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-04 13:48:25 +00:00
m68k/amiga: Convert printk(foo to pr_foo()
-no level printk converted to pr_warn/pr_info -fixed a small identation problem This is untested Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
486df8bc46
commit
f296401b04
2 changed files with 11 additions and 11 deletions
|
@ -51,7 +51,7 @@ void __init amiga_init_sound(void)
|
||||||
|
|
||||||
snd_data = amiga_chip_alloc_res(sizeof(sine_data), &beep_res);
|
snd_data = amiga_chip_alloc_res(sizeof(sine_data), &beep_res);
|
||||||
if (!snd_data) {
|
if (!snd_data) {
|
||||||
printk (KERN_CRIT "amiga init_sound: failed to allocate chipmem\n");
|
pr_crit("amiga init_sound: failed to allocate chipmem\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
memcpy (snd_data, sine_data, sizeof(sine_data));
|
memcpy (snd_data, sine_data, sizeof(sine_data));
|
||||||
|
|
|
@ -183,7 +183,7 @@ int __init amiga_parse_bootinfo(const struct bi_record *record)
|
||||||
dev->boardaddr = be32_to_cpu(cd->cd_BoardAddr);
|
dev->boardaddr = be32_to_cpu(cd->cd_BoardAddr);
|
||||||
dev->boardsize = be32_to_cpu(cd->cd_BoardSize);
|
dev->boardsize = be32_to_cpu(cd->cd_BoardSize);
|
||||||
} else
|
} else
|
||||||
printk("amiga_parse_bootinfo: too many AutoConfig devices\n");
|
pr_warn("amiga_parse_bootinfo: too many AutoConfig devices\n");
|
||||||
#endif /* CONFIG_ZORRO */
|
#endif /* CONFIG_ZORRO */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -209,9 +209,9 @@ static void __init amiga_identify(void)
|
||||||
|
|
||||||
memset(&amiga_hw_present, 0, sizeof(amiga_hw_present));
|
memset(&amiga_hw_present, 0, sizeof(amiga_hw_present));
|
||||||
|
|
||||||
printk("Amiga hardware found: ");
|
pr_info("Amiga hardware found: ");
|
||||||
if (amiga_model >= AMI_500 && amiga_model <= AMI_DRACO) {
|
if (amiga_model >= AMI_500 && amiga_model <= AMI_DRACO) {
|
||||||
printk("[%s] ", amiga_models[amiga_model-AMI_500]);
|
pr_cont("[%s] ", amiga_models[amiga_model-AMI_500]);
|
||||||
strcat(amiga_model_name, amiga_models[amiga_model-AMI_500]);
|
strcat(amiga_model_name, amiga_models[amiga_model-AMI_500]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -322,7 +322,7 @@ static void __init amiga_identify(void)
|
||||||
|
|
||||||
#define AMIGAHW_ANNOUNCE(name, str) \
|
#define AMIGAHW_ANNOUNCE(name, str) \
|
||||||
if (AMIGAHW_PRESENT(name)) \
|
if (AMIGAHW_PRESENT(name)) \
|
||||||
printk(str)
|
pr_cont(str)
|
||||||
|
|
||||||
AMIGAHW_ANNOUNCE(AMI_VIDEO, "VIDEO ");
|
AMIGAHW_ANNOUNCE(AMI_VIDEO, "VIDEO ");
|
||||||
AMIGAHW_ANNOUNCE(AMI_BLITTER, "BLITTER ");
|
AMIGAHW_ANNOUNCE(AMI_BLITTER, "BLITTER ");
|
||||||
|
@ -354,8 +354,8 @@ static void __init amiga_identify(void)
|
||||||
AMIGAHW_ANNOUNCE(MAGIC_REKICK, "MAGIC_REKICK ");
|
AMIGAHW_ANNOUNCE(MAGIC_REKICK, "MAGIC_REKICK ");
|
||||||
AMIGAHW_ANNOUNCE(PCMCIA, "PCMCIA ");
|
AMIGAHW_ANNOUNCE(PCMCIA, "PCMCIA ");
|
||||||
if (AMIGAHW_PRESENT(ZORRO))
|
if (AMIGAHW_PRESENT(ZORRO))
|
||||||
printk("ZORRO%s ", AMIGAHW_PRESENT(ZORRO3) ? "3" : "");
|
pr_cont("ZORRO%s ", AMIGAHW_PRESENT(ZORRO3) ? "3" : "");
|
||||||
printk("\n");
|
pr_cont("\n");
|
||||||
|
|
||||||
#undef AMIGAHW_ANNOUNCE
|
#undef AMIGAHW_ANNOUNCE
|
||||||
}
|
}
|
||||||
|
@ -424,7 +424,7 @@ void __init config_amiga(void)
|
||||||
if (m68k_memory[i].addr < 16*1024*1024) {
|
if (m68k_memory[i].addr < 16*1024*1024) {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
/* don't cut off the branch we're sitting on */
|
/* don't cut off the branch we're sitting on */
|
||||||
printk("Warning: kernel runs in Zorro II memory\n");
|
pr_warn("Warning: kernel runs in Zorro II memory\n");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
disabled_z2mem += m68k_memory[i].size;
|
disabled_z2mem += m68k_memory[i].size;
|
||||||
|
@ -435,8 +435,8 @@ void __init config_amiga(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (disabled_z2mem)
|
if (disabled_z2mem)
|
||||||
printk("%dK of Zorro II memory will not be used as system memory\n",
|
pr_info("%dK of Zorro II memory will not be used as system memory\n",
|
||||||
disabled_z2mem>>10);
|
disabled_z2mem>>10);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* request all RAM */
|
/* request all RAM */
|
||||||
|
@ -475,7 +475,7 @@ static void __init amiga_sched_init(irq_handler_t timer_routine)
|
||||||
jiffy_ticks = DIV_ROUND_CLOSEST(amiga_eclock, HZ);
|
jiffy_ticks = DIV_ROUND_CLOSEST(amiga_eclock, HZ);
|
||||||
|
|
||||||
if (request_resource(&mb_resources._ciab, &sched_res))
|
if (request_resource(&mb_resources._ciab, &sched_res))
|
||||||
printk("Cannot allocate ciab.ta{lo,hi}\n");
|
pr_warn("Cannot allocate ciab.ta{lo,hi}\n");
|
||||||
ciab.cra &= 0xC0; /* turn off timer A, continuous mode, from Eclk */
|
ciab.cra &= 0xC0; /* turn off timer A, continuous mode, from Eclk */
|
||||||
ciab.talo = jiffy_ticks % 256;
|
ciab.talo = jiffy_ticks % 256;
|
||||||
ciab.tahi = jiffy_ticks / 256;
|
ciab.tahi = jiffy_ticks / 256;
|
||||||
|
|
Loading…
Add table
Reference in a new issue