diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-05-10 06:38:00 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2014-05-28 04:11:54 -0400 |
commit | f296401b04a6eb2af8da5a5d40e937e91617061b (patch) | |
tree | 7ffff70649aeede863ab36ef0589dfd9450f1fe7 /arch/m68k | |
parent | 486df8bc4627bdfc032d11bedcd056cc5343ee62 (diff) |
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>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/amiga/amisound.c | 2 | ||||
-rw-r--r-- | arch/m68k/amiga/config.c | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/arch/m68k/amiga/amisound.c b/arch/m68k/amiga/amisound.c index 2559eefc6aff..90a60d758f8b 100644 --- a/arch/m68k/amiga/amisound.c +++ b/arch/m68k/amiga/amisound.c | |||
@@ -51,7 +51,7 @@ void __init amiga_init_sound(void) | |||
51 | 51 | ||
52 | snd_data = amiga_chip_alloc_res(sizeof(sine_data), &beep_res); | 52 | snd_data = amiga_chip_alloc_res(sizeof(sine_data), &beep_res); |
53 | if (!snd_data) { | 53 | if (!snd_data) { |
54 | printk (KERN_CRIT "amiga init_sound: failed to allocate chipmem\n"); | 54 | pr_crit("amiga init_sound: failed to allocate chipmem\n"); |
55 | return; | 55 | return; |
56 | } | 56 | } |
57 | memcpy (snd_data, sine_data, sizeof(sine_data)); | 57 | memcpy (snd_data, sine_data, sizeof(sine_data)); |
diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c index 9625b7132227..01693df7f2f6 100644 --- a/arch/m68k/amiga/config.c +++ b/arch/m68k/amiga/config.c | |||
@@ -183,7 +183,7 @@ int __init amiga_parse_bootinfo(const struct bi_record *record) | |||
183 | dev->boardaddr = be32_to_cpu(cd->cd_BoardAddr); | 183 | dev->boardaddr = be32_to_cpu(cd->cd_BoardAddr); |
184 | dev->boardsize = be32_to_cpu(cd->cd_BoardSize); | 184 | dev->boardsize = be32_to_cpu(cd->cd_BoardSize); |
185 | } else | 185 | } else |
186 | printk("amiga_parse_bootinfo: too many AutoConfig devices\n"); | 186 | pr_warn("amiga_parse_bootinfo: too many AutoConfig devices\n"); |
187 | #endif /* CONFIG_ZORRO */ | 187 | #endif /* CONFIG_ZORRO */ |
188 | break; | 188 | break; |
189 | 189 | ||
@@ -209,9 +209,9 @@ static void __init amiga_identify(void) | |||
209 | 209 | ||
210 | memset(&amiga_hw_present, 0, sizeof(amiga_hw_present)); | 210 | memset(&amiga_hw_present, 0, sizeof(amiga_hw_present)); |
211 | 211 | ||
212 | printk("Amiga hardware found: "); | 212 | pr_info("Amiga hardware found: "); |
213 | if (amiga_model >= AMI_500 && amiga_model <= AMI_DRACO) { | 213 | if (amiga_model >= AMI_500 && amiga_model <= AMI_DRACO) { |
214 | printk("[%s] ", amiga_models[amiga_model-AMI_500]); | 214 | pr_cont("[%s] ", amiga_models[amiga_model-AMI_500]); |
215 | strcat(amiga_model_name, amiga_models[amiga_model-AMI_500]); | 215 | strcat(amiga_model_name, amiga_models[amiga_model-AMI_500]); |
216 | } | 216 | } |
217 | 217 | ||
@@ -322,7 +322,7 @@ static void __init amiga_identify(void) | |||
322 | 322 | ||
323 | #define AMIGAHW_ANNOUNCE(name, str) \ | 323 | #define AMIGAHW_ANNOUNCE(name, str) \ |
324 | if (AMIGAHW_PRESENT(name)) \ | 324 | if (AMIGAHW_PRESENT(name)) \ |
325 | printk(str) | 325 | pr_cont(str) |
326 | 326 | ||
327 | AMIGAHW_ANNOUNCE(AMI_VIDEO, "VIDEO "); | 327 | AMIGAHW_ANNOUNCE(AMI_VIDEO, "VIDEO "); |
328 | AMIGAHW_ANNOUNCE(AMI_BLITTER, "BLITTER "); | 328 | AMIGAHW_ANNOUNCE(AMI_BLITTER, "BLITTER "); |
@@ -354,8 +354,8 @@ static void __init amiga_identify(void) | |||
354 | AMIGAHW_ANNOUNCE(MAGIC_REKICK, "MAGIC_REKICK "); | 354 | AMIGAHW_ANNOUNCE(MAGIC_REKICK, "MAGIC_REKICK "); |
355 | AMIGAHW_ANNOUNCE(PCMCIA, "PCMCIA "); | 355 | AMIGAHW_ANNOUNCE(PCMCIA, "PCMCIA "); |
356 | if (AMIGAHW_PRESENT(ZORRO)) | 356 | if (AMIGAHW_PRESENT(ZORRO)) |
357 | printk("ZORRO%s ", AMIGAHW_PRESENT(ZORRO3) ? "3" : ""); | 357 | pr_cont("ZORRO%s ", AMIGAHW_PRESENT(ZORRO3) ? "3" : ""); |
358 | printk("\n"); | 358 | pr_cont("\n"); |
359 | 359 | ||
360 | #undef AMIGAHW_ANNOUNCE | 360 | #undef AMIGAHW_ANNOUNCE |
361 | } | 361 | } |
@@ -424,7 +424,7 @@ void __init config_amiga(void) | |||
424 | if (m68k_memory[i].addr < 16*1024*1024) { | 424 | if (m68k_memory[i].addr < 16*1024*1024) { |
425 | if (i == 0) { | 425 | if (i == 0) { |
426 | /* don't cut off the branch we're sitting on */ | 426 | /* don't cut off the branch we're sitting on */ |
427 | printk("Warning: kernel runs in Zorro II memory\n"); | 427 | pr_warn("Warning: kernel runs in Zorro II memory\n"); |
428 | continue; | 428 | continue; |
429 | } | 429 | } |
430 | disabled_z2mem += m68k_memory[i].size; | 430 | disabled_z2mem += m68k_memory[i].size; |
@@ -435,8 +435,8 @@ void __init config_amiga(void) | |||
435 | } | 435 | } |
436 | } | 436 | } |
437 | if (disabled_z2mem) | 437 | if (disabled_z2mem) |
438 | printk("%dK of Zorro II memory will not be used as system memory\n", | 438 | pr_info("%dK of Zorro II memory will not be used as system memory\n", |
439 | disabled_z2mem>>10); | 439 | disabled_z2mem>>10); |
440 | } | 440 | } |
441 | 441 | ||
442 | /* request all RAM */ | 442 | /* request all RAM */ |
@@ -475,7 +475,7 @@ static void __init amiga_sched_init(irq_handler_t timer_routine) | |||
475 | jiffy_ticks = DIV_ROUND_CLOSEST(amiga_eclock, HZ); | 475 | jiffy_ticks = DIV_ROUND_CLOSEST(amiga_eclock, HZ); |
476 | 476 | ||
477 | if (request_resource(&mb_resources._ciab, &sched_res)) | 477 | if (request_resource(&mb_resources._ciab, &sched_res)) |
478 | printk("Cannot allocate ciab.ta{lo,hi}\n"); | 478 | pr_warn("Cannot allocate ciab.ta{lo,hi}\n"); |
479 | ciab.cra &= 0xC0; /* turn off timer A, continuous mode, from Eclk */ | 479 | ciab.cra &= 0xC0; /* turn off timer A, continuous mode, from Eclk */ |
480 | ciab.talo = jiffy_ticks % 256; | 480 | ciab.talo = jiffy_ticks % 256; |
481 | ciab.tahi = jiffy_ticks / 256; | 481 | ciab.tahi = jiffy_ticks / 256; |