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 /arch/mips/ar7 | |
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>
Diffstat (limited to 'arch/mips/ar7')
-rw-r--r-- | arch/mips/ar7/platform.c | 24 |
1 files changed, 12 insertions, 12 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; |