diff options
author | Joe Perches <joe@perches.com> | 2014-10-04 12:50:42 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 01:44:51 -0500 |
commit | 7178d2cdd9f5f70902dd0201ebcf01c9489c4afb (patch) | |
tree | 3fe2fbb9996549586e567aa06c17a5ed38515d57 | |
parent | e5067c718b3a6ecc00351861b3655d8cdeb0b6d2 (diff) |
mips: Convert pr_warning to pr_warn
Use the much more common pr_warn instead of pr_warning
with the goal of removing pr_warning eventually.
Other miscellanea:
o Coalesce formats
o Realign arguments
Signed-off-by: Joe Perches <joe@perches.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Patchwork: https://patchwork.linux-mips.org/patch/7935/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/ar7/platform.c | 24 | ||||
-rw-r--r-- | arch/mips/include/asm/octeon/cvmx-pow.h | 69 | ||||
-rw-r--r-- | arch/mips/kernel/crash_dump.c | 4 | ||||
-rw-r--r-- | arch/mips/kernel/perf_event_mipsxx.c | 7 | ||||
-rw-r--r-- | arch/mips/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/mips/pci/pci-tx4939.c | 2 | ||||
-rw-r--r-- | arch/mips/txx9/generic/setup_tx4927.c | 4 | ||||
-rw-r--r-- | arch/mips/txx9/generic/setup_tx4938.c | 4 | ||||
-rw-r--r-- | arch/mips/txx9/generic/setup_tx4939.c | 4 |
9 files changed, 52 insertions, 68 deletions
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c index 7e2356fd5fd6..af2441dbfc12 100644 --- a/arch/mips/ar7/platform.c +++ b/arch/mips/ar7/platform.c | |||
@@ -311,8 +311,7 @@ static void __init cpmac_get_mac(int instance, unsigned char *dev_addr) | |||
311 | &dev_addr[0], &dev_addr[1], | 311 | &dev_addr[0], &dev_addr[1], |
312 | &dev_addr[2], &dev_addr[3], | 312 | &dev_addr[2], &dev_addr[3], |
313 | &dev_addr[4], &dev_addr[5]) != 6) { | 313 | &dev_addr[4], &dev_addr[5]) != 6) { |
314 | pr_warning("cannot parse mac address, " | 314 | pr_warn("cannot parse mac address, using random address\n"); |
315 | "using random address\n"); | ||
316 | eth_random_addr(dev_addr); | 315 | eth_random_addr(dev_addr); |
317 | } | 316 | } |
318 | } else | 317 | } else |
@@ -665,7 +664,7 @@ static int __init ar7_register_devices(void) | |||
665 | 664 | ||
666 | res = platform_device_register(&physmap_flash); | 665 | res = platform_device_register(&physmap_flash); |
667 | if (res) | 666 | if (res) |
668 | pr_warning("unable to register physmap-flash: %d\n", res); | 667 | pr_warn("unable to register physmap-flash: %d\n", res); |
669 | 668 | ||
670 | if (ar7_is_titan()) | 669 | if (ar7_is_titan()) |
671 | titan_fixup_devices(); | 670 | titan_fixup_devices(); |
@@ -673,13 +672,13 @@ static int __init ar7_register_devices(void) | |||
673 | ar7_device_disable(vlynq_low_data.reset_bit); | 672 | ar7_device_disable(vlynq_low_data.reset_bit); |
674 | res = platform_device_register(&vlynq_low); | 673 | res = platform_device_register(&vlynq_low); |
675 | if (res) | 674 | if (res) |
676 | pr_warning("unable to register vlynq-low: %d\n", res); | 675 | pr_warn("unable to register vlynq-low: %d\n", res); |
677 | 676 | ||
678 | if (ar7_has_high_vlynq()) { | 677 | if (ar7_has_high_vlynq()) { |
679 | ar7_device_disable(vlynq_high_data.reset_bit); | 678 | ar7_device_disable(vlynq_high_data.reset_bit); |
680 | res = platform_device_register(&vlynq_high); | 679 | res = platform_device_register(&vlynq_high); |
681 | if (res) | 680 | if (res) |
682 | pr_warning("unable to register vlynq-high: %d\n", res); | 681 | pr_warn("unable to register vlynq-high: %d\n", res); |
683 | } | 682 | } |
684 | 683 | ||
685 | if (ar7_has_high_cpmac()) { | 684 | if (ar7_has_high_cpmac()) { |
@@ -689,9 +688,10 @@ static int __init ar7_register_devices(void) | |||
689 | 688 | ||
690 | res = platform_device_register(&cpmac_high); | 689 | res = platform_device_register(&cpmac_high); |
691 | if (res) | 690 | if (res) |
692 | pr_warning("unable to register cpmac-high: %d\n", res); | 691 | pr_warn("unable to register cpmac-high: %d\n", |
692 | res); | ||
693 | } else | 693 | } else |
694 | pr_warning("unable to add cpmac-high phy: %d\n", res); | 694 | pr_warn("unable to add cpmac-high phy: %d\n", res); |
695 | } else | 695 | } else |
696 | cpmac_low_data.phy_mask = 0xffffffff; | 696 | cpmac_low_data.phy_mask = 0xffffffff; |
697 | 697 | ||
@@ -700,18 +700,18 @@ static int __init ar7_register_devices(void) | |||
700 | cpmac_get_mac(0, cpmac_low_data.dev_addr); | 700 | cpmac_get_mac(0, cpmac_low_data.dev_addr); |
701 | res = platform_device_register(&cpmac_low); | 701 | res = platform_device_register(&cpmac_low); |
702 | if (res) | 702 | if (res) |
703 | pr_warning("unable to register cpmac-low: %d\n", res); | 703 | pr_warn("unable to register cpmac-low: %d\n", res); |
704 | } else | 704 | } else |
705 | pr_warning("unable to add cpmac-low phy: %d\n", res); | 705 | pr_warn("unable to add cpmac-low phy: %d\n", res); |
706 | 706 | ||
707 | detect_leds(); | 707 | detect_leds(); |
708 | res = platform_device_register(&ar7_gpio_leds); | 708 | res = platform_device_register(&ar7_gpio_leds); |
709 | if (res) | 709 | if (res) |
710 | pr_warning("unable to register leds: %d\n", res); | 710 | pr_warn("unable to register leds: %d\n", res); |
711 | 711 | ||
712 | res = platform_device_register(&ar7_udc); | 712 | res = platform_device_register(&ar7_udc); |
713 | if (res) | 713 | if (res) |
714 | pr_warning("unable to register usb slave: %d\n", res); | 714 | pr_warn("unable to register usb slave: %d\n", res); |
715 | 715 | ||
716 | /* Register watchdog only if enabled in hardware */ | 716 | /* Register watchdog only if enabled in hardware */ |
717 | bootcr = ioremap_nocache(AR7_REGS_DCL, 4); | 717 | bootcr = ioremap_nocache(AR7_REGS_DCL, 4); |
@@ -726,7 +726,7 @@ static int __init ar7_register_devices(void) | |||
726 | ar7_wdt_res.end = ar7_wdt_res.start + 0x20; | 726 | ar7_wdt_res.end = ar7_wdt_res.start + 0x20; |
727 | res = platform_device_register(&ar7_wdt); | 727 | res = platform_device_register(&ar7_wdt); |
728 | if (res) | 728 | if (res) |
729 | pr_warning("unable to register watchdog: %d\n", res); | 729 | pr_warn("unable to register watchdog: %d\n", res); |
730 | } | 730 | } |
731 | 731 | ||
732 | return 0; | 732 | return 0; |
diff --git a/arch/mips/include/asm/octeon/cvmx-pow.h b/arch/mips/include/asm/octeon/cvmx-pow.h index 4b4d0ecfd9eb..2188e65afb86 100644 --- a/arch/mips/include/asm/octeon/cvmx-pow.h +++ b/arch/mips/include/asm/octeon/cvmx-pow.h | |||
@@ -1066,7 +1066,7 @@ static inline void __cvmx_pow_warn_if_pending_switch(const char *function) | |||
1066 | uint64_t switch_complete; | 1066 | uint64_t switch_complete; |
1067 | CVMX_MF_CHORD(switch_complete); | 1067 | CVMX_MF_CHORD(switch_complete); |
1068 | if (!switch_complete) | 1068 | if (!switch_complete) |
1069 | pr_warning("%s called with tag switch in progress\n", function); | 1069 | pr_warn("%s called with tag switch in progress\n", function); |
1070 | } | 1070 | } |
1071 | 1071 | ||
1072 | /** | 1072 | /** |
@@ -1084,8 +1084,7 @@ static inline void cvmx_pow_tag_sw_wait(void) | |||
1084 | if (unlikely(switch_complete)) | 1084 | if (unlikely(switch_complete)) |
1085 | break; | 1085 | break; |
1086 | if (unlikely(cvmx_get_cycle() > start_cycle + MAX_CYCLES)) { | 1086 | if (unlikely(cvmx_get_cycle() > start_cycle + MAX_CYCLES)) { |
1087 | pr_warning("Tag switch is taking a long time, " | 1087 | pr_warn("Tag switch is taking a long time, possible deadlock\n"); |
1088 | "possible deadlock\n"); | ||
1089 | start_cycle = -MAX_CYCLES - 1; | 1088 | start_cycle = -MAX_CYCLES - 1; |
1090 | } | 1089 | } |
1091 | } | 1090 | } |
@@ -1296,19 +1295,16 @@ static inline void cvmx_pow_tag_sw_nocheck(uint32_t tag, | |||
1296 | __cvmx_pow_warn_if_pending_switch(__func__); | 1295 | __cvmx_pow_warn_if_pending_switch(__func__); |
1297 | current_tag = cvmx_pow_get_current_tag(); | 1296 | current_tag = cvmx_pow_get_current_tag(); |
1298 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL) | 1297 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL) |
1299 | pr_warning("%s called with NULL_NULL tag\n", | 1298 | pr_warn("%s called with NULL_NULL tag\n", __func__); |
1300 | __func__); | ||
1301 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL) | 1299 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL) |
1302 | pr_warning("%s called with NULL tag\n", __func__); | 1300 | pr_warn("%s called with NULL tag\n", __func__); |
1303 | if ((current_tag.s.type == tag_type) | 1301 | if ((current_tag.s.type == tag_type) |
1304 | && (current_tag.s.tag == tag)) | 1302 | && (current_tag.s.tag == tag)) |
1305 | pr_warning("%s called to perform a tag switch to the " | 1303 | pr_warn("%s called to perform a tag switch to the same tag\n", |
1306 | "same tag\n", | 1304 | __func__); |
1307 | __func__); | ||
1308 | if (tag_type == CVMX_POW_TAG_TYPE_NULL) | 1305 | if (tag_type == CVMX_POW_TAG_TYPE_NULL) |
1309 | pr_warning("%s called to perform a tag switch to " | 1306 | pr_warn("%s called to perform a tag switch to NULL. Use cvmx_pow_tag_sw_null() instead\n", |
1310 | "NULL. Use cvmx_pow_tag_sw_null() instead\n", | 1307 | __func__); |
1311 | __func__); | ||
1312 | } | 1308 | } |
1313 | 1309 | ||
1314 | /* | 1310 | /* |
@@ -1407,23 +1403,19 @@ static inline void cvmx_pow_tag_sw_full_nocheck(cvmx_wqe_t *wqp, uint32_t tag, | |||
1407 | __cvmx_pow_warn_if_pending_switch(__func__); | 1403 | __cvmx_pow_warn_if_pending_switch(__func__); |
1408 | current_tag = cvmx_pow_get_current_tag(); | 1404 | current_tag = cvmx_pow_get_current_tag(); |
1409 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL) | 1405 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL) |
1410 | pr_warning("%s called with NULL_NULL tag\n", | 1406 | pr_warn("%s called with NULL_NULL tag\n", __func__); |
1411 | __func__); | ||
1412 | if ((current_tag.s.type == tag_type) | 1407 | if ((current_tag.s.type == tag_type) |
1413 | && (current_tag.s.tag == tag)) | 1408 | && (current_tag.s.tag == tag)) |
1414 | pr_warning("%s called to perform a tag switch to " | 1409 | pr_warn("%s called to perform a tag switch to the same tag\n", |
1415 | "the same tag\n", | 1410 | __func__); |
1416 | __func__); | ||
1417 | if (tag_type == CVMX_POW_TAG_TYPE_NULL) | 1411 | if (tag_type == CVMX_POW_TAG_TYPE_NULL) |
1418 | pr_warning("%s called to perform a tag switch to " | 1412 | pr_warn("%s called to perform a tag switch to NULL. Use cvmx_pow_tag_sw_null() instead\n", |
1419 | "NULL. Use cvmx_pow_tag_sw_null() instead\n", | 1413 | __func__); |
1420 | __func__); | ||
1421 | if (wqp != cvmx_phys_to_ptr(0x80)) | 1414 | if (wqp != cvmx_phys_to_ptr(0x80)) |
1422 | if (wqp != cvmx_pow_get_current_wqp()) | 1415 | if (wqp != cvmx_pow_get_current_wqp()) |
1423 | pr_warning("%s passed WQE(%p) doesn't match " | 1416 | pr_warn("%s passed WQE(%p) doesn't match the address in the POW(%p)\n", |
1424 | "the address in the POW(%p)\n", | 1417 | __func__, wqp, |
1425 | __func__, wqp, | 1418 | cvmx_pow_get_current_wqp()); |
1426 | cvmx_pow_get_current_wqp()); | ||
1427 | } | 1419 | } |
1428 | 1420 | ||
1429 | /* | 1421 | /* |
@@ -1507,12 +1499,10 @@ static inline void cvmx_pow_tag_sw_null_nocheck(void) | |||
1507 | __cvmx_pow_warn_if_pending_switch(__func__); | 1499 | __cvmx_pow_warn_if_pending_switch(__func__); |
1508 | current_tag = cvmx_pow_get_current_tag(); | 1500 | current_tag = cvmx_pow_get_current_tag(); |
1509 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL) | 1501 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL) |
1510 | pr_warning("%s called with NULL_NULL tag\n", | 1502 | pr_warn("%s called with NULL_NULL tag\n", __func__); |
1511 | __func__); | ||
1512 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL) | 1503 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL) |
1513 | pr_warning("%s called when we already have a " | 1504 | pr_warn("%s called when we already have a NULL tag\n", |
1514 | "NULL tag\n", | 1505 | __func__); |
1515 | __func__); | ||
1516 | } | 1506 | } |
1517 | 1507 | ||
1518 | tag_req.u64 = 0; | 1508 | tag_req.u64 = 0; |
@@ -1725,17 +1715,14 @@ static inline void cvmx_pow_tag_sw_desched_nocheck( | |||
1725 | __cvmx_pow_warn_if_pending_switch(__func__); | 1715 | __cvmx_pow_warn_if_pending_switch(__func__); |
1726 | current_tag = cvmx_pow_get_current_tag(); | 1716 | current_tag = cvmx_pow_get_current_tag(); |
1727 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL) | 1717 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL) |
1728 | pr_warning("%s called with NULL_NULL tag\n", | 1718 | pr_warn("%s called with NULL_NULL tag\n", __func__); |
1729 | __func__); | ||
1730 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL) | 1719 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL) |
1731 | pr_warning("%s called with NULL tag. Deschedule not " | 1720 | pr_warn("%s called with NULL tag. Deschedule not allowed from NULL state\n", |
1732 | "allowed from NULL state\n", | 1721 | __func__); |
1733 | __func__); | ||
1734 | if ((current_tag.s.type != CVMX_POW_TAG_TYPE_ATOMIC) | 1722 | if ((current_tag.s.type != CVMX_POW_TAG_TYPE_ATOMIC) |
1735 | && (tag_type != CVMX_POW_TAG_TYPE_ATOMIC)) | 1723 | && (tag_type != CVMX_POW_TAG_TYPE_ATOMIC)) |
1736 | pr_warning("%s called where neither the before or " | 1724 | pr_warn("%s called where neither the before or after tag is ATOMIC\n", |
1737 | "after tag is ATOMIC\n", | 1725 | __func__); |
1738 | __func__); | ||
1739 | } | 1726 | } |
1740 | 1727 | ||
1741 | tag_req.u64 = 0; | 1728 | tag_req.u64 = 0; |
@@ -1832,12 +1819,10 @@ static inline void cvmx_pow_desched(uint64_t no_sched) | |||
1832 | __cvmx_pow_warn_if_pending_switch(__func__); | 1819 | __cvmx_pow_warn_if_pending_switch(__func__); |
1833 | current_tag = cvmx_pow_get_current_tag(); | 1820 | current_tag = cvmx_pow_get_current_tag(); |
1834 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL) | 1821 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL_NULL) |
1835 | pr_warning("%s called with NULL_NULL tag\n", | 1822 | pr_warn("%s called with NULL_NULL tag\n", __func__); |
1836 | __func__); | ||
1837 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL) | 1823 | if (current_tag.s.type == CVMX_POW_TAG_TYPE_NULL) |
1838 | pr_warning("%s called with NULL tag. Deschedule not " | 1824 | pr_warn("%s called with NULL tag. Deschedule not expected from NULL state\n", |
1839 | "expected from NULL state\n", | 1825 | __func__); |
1840 | __func__); | ||
1841 | } | 1826 | } |
1842 | 1827 | ||
1843 | /* Need to make sure any writes to the work queue entry are complete */ | 1828 | /* Need to make sure any writes to the work queue entry are complete */ |
diff --git a/arch/mips/kernel/crash_dump.c b/arch/mips/kernel/crash_dump.c index f291cf99b03a..6fe7790e5868 100644 --- a/arch/mips/kernel/crash_dump.c +++ b/arch/mips/kernel/crash_dump.c | |||
@@ -38,7 +38,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf, | |||
38 | kunmap_atomic(vaddr); | 38 | kunmap_atomic(vaddr); |
39 | } else { | 39 | } else { |
40 | if (!kdump_buf_page) { | 40 | if (!kdump_buf_page) { |
41 | pr_warning("Kdump: Kdump buffer page not allocated\n"); | 41 | pr_warn("Kdump: Kdump buffer page not allocated\n"); |
42 | 42 | ||
43 | return -EFAULT; | 43 | return -EFAULT; |
44 | } | 44 | } |
@@ -57,7 +57,7 @@ static int __init kdump_buf_page_init(void) | |||
57 | 57 | ||
58 | kdump_buf_page = kmalloc(PAGE_SIZE, GFP_KERNEL); | 58 | kdump_buf_page = kmalloc(PAGE_SIZE, GFP_KERNEL); |
59 | if (!kdump_buf_page) { | 59 | if (!kdump_buf_page) { |
60 | pr_warning("Kdump: Failed to allocate kdump buffer page\n"); | 60 | pr_warn("Kdump: Failed to allocate kdump buffer page\n"); |
61 | ret = -ENOMEM; | 61 | ret = -ENOMEM; |
62 | } | 62 | } |
63 | 63 | ||
diff --git a/arch/mips/kernel/perf_event_mipsxx.c b/arch/mips/kernel/perf_event_mipsxx.c index a8f9cdc6f8b0..7633d30550e9 100644 --- a/arch/mips/kernel/perf_event_mipsxx.c +++ b/arch/mips/kernel/perf_event_mipsxx.c | |||
@@ -561,8 +561,8 @@ static int mipspmu_get_irq(void) | |||
561 | IRQF_PERCPU | IRQF_NOBALANCING | IRQF_NO_THREAD, | 561 | IRQF_PERCPU | IRQF_NOBALANCING | IRQF_NO_THREAD, |
562 | "mips_perf_pmu", NULL); | 562 | "mips_perf_pmu", NULL); |
563 | if (err) { | 563 | if (err) { |
564 | pr_warning("Unable to request IRQ%d for MIPS " | 564 | pr_warn("Unable to request IRQ%d for MIPS performance counters!\n", |
565 | "performance counters!\n", mipspmu.irq); | 565 | mipspmu.irq); |
566 | } | 566 | } |
567 | } else if (cp0_perfcount_irq < 0) { | 567 | } else if (cp0_perfcount_irq < 0) { |
568 | /* | 568 | /* |
@@ -572,8 +572,7 @@ static int mipspmu_get_irq(void) | |||
572 | perf_irq = mipsxx_pmu_handle_shared_irq; | 572 | perf_irq = mipsxx_pmu_handle_shared_irq; |
573 | err = 0; | 573 | err = 0; |
574 | } else { | 574 | } else { |
575 | pr_warning("The platform hasn't properly defined its " | 575 | pr_warn("The platform hasn't properly defined its interrupt controller\n"); |
576 | "interrupt controller.\n"); | ||
577 | err = -ENOENT; | 576 | err = -ENOENT; |
578 | } | 577 | } |
579 | 578 | ||
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index d21ec57b6e95..eacfd7dbe8cc 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
@@ -89,7 +89,7 @@ void __init add_memory_region(phys_t start, phys_t size, long type) | |||
89 | 89 | ||
90 | /* Sanity check */ | 90 | /* Sanity check */ |
91 | if (start + size < start) { | 91 | if (start + size < start) { |
92 | pr_warning("Trying to add an invalid memory region, skipped\n"); | 92 | pr_warn("Trying to add an invalid memory region, skipped\n"); |
93 | return; | 93 | return; |
94 | } | 94 | } |
95 | 95 | ||
diff --git a/arch/mips/pci/pci-tx4939.c b/arch/mips/pci/pci-tx4939.c index c10fbf2a19dc..cd8ed09c4f53 100644 --- a/arch/mips/pci/pci-tx4939.c +++ b/arch/mips/pci/pci-tx4939.c | |||
@@ -103,5 +103,5 @@ void __init tx4939_setup_pcierr_irq(void) | |||
103 | tx4927_pcierr_interrupt, | 103 | tx4927_pcierr_interrupt, |
104 | 0, "PCI error", | 104 | 0, "PCI error", |
105 | (void *)TX4939_PCIC_REG)) | 105 | (void *)TX4939_PCIC_REG)) |
106 | pr_warning("Failed to request irq for PCIERR\n"); | 106 | pr_warn("Failed to request irq for PCIERR\n"); |
107 | } | 107 | } |
diff --git a/arch/mips/txx9/generic/setup_tx4927.c b/arch/mips/txx9/generic/setup_tx4927.c index e714d6ce9a82..a4664cb6c1e1 100644 --- a/arch/mips/txx9/generic/setup_tx4927.c +++ b/arch/mips/txx9/generic/setup_tx4927.c | |||
@@ -29,8 +29,8 @@ static void __init tx4927_wdr_init(void) | |||
29 | { | 29 | { |
30 | /* report watchdog reset status */ | 30 | /* report watchdog reset status */ |
31 | if (____raw_readq(&tx4927_ccfgptr->ccfg) & TX4927_CCFG_WDRST) | 31 | if (____raw_readq(&tx4927_ccfgptr->ccfg) & TX4927_CCFG_WDRST) |
32 | pr_warning("Watchdog reset detected at 0x%lx\n", | 32 | pr_warn("Watchdog reset detected at 0x%lx\n", |
33 | read_c0_errorepc()); | 33 | read_c0_errorepc()); |
34 | /* clear WatchDogReset (W1C) */ | 34 | /* clear WatchDogReset (W1C) */ |
35 | tx4927_ccfg_set(TX4927_CCFG_WDRST); | 35 | tx4927_ccfg_set(TX4927_CCFG_WDRST); |
36 | /* do reset on watchdog */ | 36 | /* do reset on watchdog */ |
diff --git a/arch/mips/txx9/generic/setup_tx4938.c b/arch/mips/txx9/generic/setup_tx4938.c index 0a3bf2dfaba1..58cdb2aba5e1 100644 --- a/arch/mips/txx9/generic/setup_tx4938.c +++ b/arch/mips/txx9/generic/setup_tx4938.c | |||
@@ -31,8 +31,8 @@ static void __init tx4938_wdr_init(void) | |||
31 | { | 31 | { |
32 | /* report watchdog reset status */ | 32 | /* report watchdog reset status */ |
33 | if (____raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_WDRST) | 33 | if (____raw_readq(&tx4938_ccfgptr->ccfg) & TX4938_CCFG_WDRST) |
34 | pr_warning("Watchdog reset detected at 0x%lx\n", | 34 | pr_warn("Watchdog reset detected at 0x%lx\n", |
35 | read_c0_errorepc()); | 35 | read_c0_errorepc()); |
36 | /* clear WatchDogReset (W1C) */ | 36 | /* clear WatchDogReset (W1C) */ |
37 | tx4938_ccfg_set(TX4938_CCFG_WDRST); | 37 | tx4938_ccfg_set(TX4938_CCFG_WDRST); |
38 | /* do reset on watchdog */ | 38 | /* do reset on watchdog */ |
diff --git a/arch/mips/txx9/generic/setup_tx4939.c b/arch/mips/txx9/generic/setup_tx4939.c index b7eccbd17bf7..e3733cde50d6 100644 --- a/arch/mips/txx9/generic/setup_tx4939.c +++ b/arch/mips/txx9/generic/setup_tx4939.c | |||
@@ -35,8 +35,8 @@ static void __init tx4939_wdr_init(void) | |||
35 | { | 35 | { |
36 | /* report watchdog reset status */ | 36 | /* report watchdog reset status */ |
37 | if (____raw_readq(&tx4939_ccfgptr->ccfg) & TX4939_CCFG_WDRST) | 37 | if (____raw_readq(&tx4939_ccfgptr->ccfg) & TX4939_CCFG_WDRST) |
38 | pr_warning("Watchdog reset detected at 0x%lx\n", | 38 | pr_warn("Watchdog reset detected at 0x%lx\n", |
39 | read_c0_errorepc()); | 39 | read_c0_errorepc()); |
40 | /* clear WatchDogReset (W1C) */ | 40 | /* clear WatchDogReset (W1C) */ |
41 | tx4939_ccfg_set(TX4939_CCFG_WDRST); | 41 | tx4939_ccfg_set(TX4939_CCFG_WDRST); |
42 | /* do reset on watchdog */ | 42 | /* do reset on watchdog */ |