diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-19 02:11:47 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-05-19 14:59:15 -0400 |
commit | 54a9058860f2b7ed8d2fe5bf7be19bb901866dc2 (patch) | |
tree | f6c779143685db48f32a480c3e3423dd6bd3cd4f /kernel | |
parent | cb5557bec9f14d05204a9014ae1b23aca8b04f1d (diff) |
irqdomain: trivial pr_fmt conversion.
Convert to pr_fmt before things start to get out of hand and some
janitors start getting overly excited.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/irqdomain.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 92e06442d74c..9a6e8a8747db 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c | |||
@@ -1,3 +1,5 @@ | |||
1 | #define pr_fmt(fmt) "irq: " fmt | ||
2 | |||
1 | #include <linux/debugfs.h> | 3 | #include <linux/debugfs.h> |
2 | #include <linux/hardirq.h> | 4 | #include <linux/hardirq.h> |
3 | #include <linux/interrupt.h> | 5 | #include <linux/interrupt.h> |
@@ -67,7 +69,7 @@ static void irq_domain_add(struct irq_domain *domain) | |||
67 | mutex_lock(&irq_domain_mutex); | 69 | mutex_lock(&irq_domain_mutex); |
68 | list_add(&domain->link, &irq_domain_list); | 70 | list_add(&domain->link, &irq_domain_list); |
69 | mutex_unlock(&irq_domain_mutex); | 71 | mutex_unlock(&irq_domain_mutex); |
70 | pr_debug("irq: Allocated domain of type %d @0x%p\n", | 72 | pr_debug("Allocated domain of type %d @0x%p\n", |
71 | domain->revmap_type, domain); | 73 | domain->revmap_type, domain); |
72 | } | 74 | } |
73 | 75 | ||
@@ -117,7 +119,7 @@ void irq_domain_remove(struct irq_domain *domain) | |||
117 | 119 | ||
118 | mutex_unlock(&irq_domain_mutex); | 120 | mutex_unlock(&irq_domain_mutex); |
119 | 121 | ||
120 | pr_debug("irq: Removed domain of type %d @0x%p\n", | 122 | pr_debug("Removed domain of type %d @0x%p\n", |
121 | domain->revmap_type, domain); | 123 | domain->revmap_type, domain); |
122 | 124 | ||
123 | irq_domain_free(domain); | 125 | irq_domain_free(domain); |
@@ -321,7 +323,7 @@ EXPORT_SYMBOL_GPL(irq_find_host); | |||
321 | */ | 323 | */ |
322 | void irq_set_default_host(struct irq_domain *domain) | 324 | void irq_set_default_host(struct irq_domain *domain) |
323 | { | 325 | { |
324 | pr_debug("irq: Default domain set to @0x%p\n", domain); | 326 | pr_debug("Default domain set to @0x%p\n", domain); |
325 | 327 | ||
326 | irq_default_domain = domain; | 328 | irq_default_domain = domain; |
327 | } | 329 | } |
@@ -335,7 +337,7 @@ static int irq_setup_virq(struct irq_domain *domain, unsigned int virq, | |||
335 | irq_data->hwirq = hwirq; | 337 | irq_data->hwirq = hwirq; |
336 | irq_data->domain = domain; | 338 | irq_data->domain = domain; |
337 | if (domain->ops->map(domain, virq, hwirq)) { | 339 | if (domain->ops->map(domain, virq, hwirq)) { |
338 | pr_debug("irq: -> mapping failed, freeing\n"); | 340 | pr_debug("irq-%i==>hwirq-0x%lx mapping failed\n", virq, hwirq); |
339 | irq_data->domain = NULL; | 341 | irq_data->domain = NULL; |
340 | irq_data->hwirq = 0; | 342 | irq_data->hwirq = 0; |
341 | return -1; | 343 | return -1; |
@@ -366,7 +368,7 @@ unsigned int irq_create_direct_mapping(struct irq_domain *domain) | |||
366 | 368 | ||
367 | virq = irq_alloc_desc_from(1, 0); | 369 | virq = irq_alloc_desc_from(1, 0); |
368 | if (!virq) { | 370 | if (!virq) { |
369 | pr_debug("irq: create_direct virq allocation failed\n"); | 371 | pr_debug("create_direct virq allocation failed\n"); |
370 | return 0; | 372 | return 0; |
371 | } | 373 | } |
372 | if (virq >= domain->revmap_data.nomap.max_irq) { | 374 | if (virq >= domain->revmap_data.nomap.max_irq) { |
@@ -375,7 +377,7 @@ unsigned int irq_create_direct_mapping(struct irq_domain *domain) | |||
375 | irq_free_desc(virq); | 377 | irq_free_desc(virq); |
376 | return 0; | 378 | return 0; |
377 | } | 379 | } |
378 | pr_debug("irq: create_direct obtained virq %d\n", virq); | 380 | pr_debug("create_direct obtained virq %d\n", virq); |
379 | 381 | ||
380 | if (irq_setup_virq(domain, virq, virq)) { | 382 | if (irq_setup_virq(domain, virq, virq)) { |
381 | irq_free_desc(virq); | 383 | irq_free_desc(virq); |
@@ -402,23 +404,23 @@ unsigned int irq_create_mapping(struct irq_domain *domain, | |||
402 | unsigned int hint; | 404 | unsigned int hint; |
403 | int virq; | 405 | int virq; |
404 | 406 | ||
405 | pr_debug("irq: irq_create_mapping(0x%p, 0x%lx)\n", domain, hwirq); | 407 | pr_debug("irq_create_mapping(0x%p, 0x%lx)\n", domain, hwirq); |
406 | 408 | ||
407 | /* Look for default domain if nececssary */ | 409 | /* Look for default domain if nececssary */ |
408 | if (domain == NULL) | 410 | if (domain == NULL) |
409 | domain = irq_default_domain; | 411 | domain = irq_default_domain; |
410 | if (domain == NULL) { | 412 | if (domain == NULL) { |
411 | printk(KERN_WARNING "irq_create_mapping called for" | 413 | pr_warning("irq_create_mapping called for" |
412 | " NULL domain, hwirq=%lx\n", hwirq); | 414 | " NULL domain, hwirq=%lx\n", hwirq); |
413 | WARN_ON(1); | 415 | WARN_ON(1); |
414 | return 0; | 416 | return 0; |
415 | } | 417 | } |
416 | pr_debug("irq: -> using domain @%p\n", domain); | 418 | pr_debug("-> using domain @%p\n", domain); |
417 | 419 | ||
418 | /* Check if mapping already exists */ | 420 | /* Check if mapping already exists */ |
419 | virq = irq_find_mapping(domain, hwirq); | 421 | virq = irq_find_mapping(domain, hwirq); |
420 | if (virq) { | 422 | if (virq) { |
421 | pr_debug("irq: -> existing mapping on virq %d\n", virq); | 423 | pr_debug("-> existing mapping on virq %d\n", virq); |
422 | return virq; | 424 | return virq; |
423 | } | 425 | } |
424 | 426 | ||
@@ -434,7 +436,7 @@ unsigned int irq_create_mapping(struct irq_domain *domain, | |||
434 | if (virq <= 0) | 436 | if (virq <= 0) |
435 | virq = irq_alloc_desc_from(1, 0); | 437 | virq = irq_alloc_desc_from(1, 0); |
436 | if (virq <= 0) { | 438 | if (virq <= 0) { |
437 | pr_debug("irq: -> virq allocation failed\n"); | 439 | pr_debug("-> virq allocation failed\n"); |
438 | return 0; | 440 | return 0; |
439 | } | 441 | } |
440 | 442 | ||
@@ -444,7 +446,7 @@ unsigned int irq_create_mapping(struct irq_domain *domain, | |||
444 | return 0; | 446 | return 0; |
445 | } | 447 | } |
446 | 448 | ||
447 | pr_debug("irq: irq %lu on domain %s mapped to virtual irq %u\n", | 449 | pr_debug("irq %lu on domain %s mapped to virtual irq %u\n", |
448 | hwirq, domain->of_node ? domain->of_node->full_name : "null", virq); | 450 | hwirq, domain->of_node ? domain->of_node->full_name : "null", virq); |
449 | 451 | ||
450 | return virq; | 452 | return virq; |
@@ -473,8 +475,8 @@ unsigned int irq_create_of_mapping(struct device_node *controller, | |||
473 | if (intsize > 0) | 475 | if (intsize > 0) |
474 | return intspec[0]; | 476 | return intspec[0]; |
475 | #endif | 477 | #endif |
476 | printk(KERN_WARNING "irq: no irq domain found for %s !\n", | 478 | pr_warning("no irq domain found for %s !\n", |
477 | controller->full_name); | 479 | controller->full_name); |
478 | return 0; | 480 | return 0; |
479 | } | 481 | } |
480 | 482 | ||