aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-09-13 14:31:18 -0400
committerRobert Jarzmik <robert.jarzmik@free.fr>2014-11-19 17:53:13 -0500
commit7b472ac75689af196d868b3f2322edb44b8096d3 (patch)
treedcd6e6bd7285eae44ab1c8274d80e3ee51d68954
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
arm: mach-pxa: Convert pr_warning to pr_warn
Use the more common pr_warn. Other miscellanea: o Coalesce formats o Realign arguments Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
-rw-r--r--arch/arm/mach-pxa/em-x270.c4
-rw-r--r--arch/arm/mach-pxa/gumstix.c3
-rw-r--r--arch/arm/mach-pxa/mfp-pxa2xx.c12
-rw-r--r--arch/arm/mach-pxa/poodle.c2
-rw-r--r--arch/arm/mach-pxa/pxa3xx-ulpi.c6
-rw-r--r--arch/arm/mach-pxa/raumfeld.c26
6 files changed, 25 insertions, 28 deletions
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c
index 6915a9f6b3a3..51531ecffca8 100644
--- a/arch/arm/mach-pxa/em-x270.c
+++ b/arch/arm/mach-pxa/em-x270.c
@@ -378,7 +378,7 @@ static void __init em_x270_init_nand(void)
378 378
379 err = gpio_request(GPIO11_NAND_CS, "NAND CS"); 379 err = gpio_request(GPIO11_NAND_CS, "NAND CS");
380 if (err) { 380 if (err) {
381 pr_warning("EM-X270: failed to request NAND CS gpio\n"); 381 pr_warn("EM-X270: failed to request NAND CS gpio\n");
382 return; 382 return;
383 } 383 }
384 384
@@ -386,7 +386,7 @@ static void __init em_x270_init_nand(void)
386 386
387 err = gpio_request(nand_rb, "NAND R/B"); 387 err = gpio_request(nand_rb, "NAND R/B");
388 if (err) { 388 if (err) {
389 pr_warning("EM-X270: failed to request NAND R/B gpio\n"); 389 pr_warn("EM-X270: failed to request NAND R/B gpio\n");
390 gpio_free(GPIO11_NAND_CS); 390 gpio_free(GPIO11_NAND_CS);
391 return; 391 return;
392 } 392 }
diff --git a/arch/arm/mach-pxa/gumstix.c b/arch/arm/mach-pxa/gumstix.c
index 00b92dad7b81..f6c76a3ee3b2 100644
--- a/arch/arm/mach-pxa/gumstix.c
+++ b/arch/arm/mach-pxa/gumstix.c
@@ -140,8 +140,7 @@ static void gumstix_setup_bt_clock(void)
140 int timeout = 500; 140 int timeout = 500;
141 141
142 if (!(OSCC & OSCC_OOK)) 142 if (!(OSCC & OSCC_OOK))
143 pr_warning("32kHz clock was not on. Bootloader may need to " 143 pr_warn("32kHz clock was not on. Bootloader may need to be updated\n");
144 "be updated\n");
145 else 144 else
146 return; 145 return;
147 146
diff --git a/arch/arm/mach-pxa/mfp-pxa2xx.c b/arch/arm/mach-pxa/mfp-pxa2xx.c
index ef0426a159d4..666b78972c40 100644
--- a/arch/arm/mach-pxa/mfp-pxa2xx.c
+++ b/arch/arm/mach-pxa/mfp-pxa2xx.c
@@ -93,8 +93,8 @@ static int __mfp_config_gpio(unsigned gpio, unsigned long c)
93 break; 93 break;
94 default: 94 default:
95 /* warning and fall through, treat as MFP_LPM_DEFAULT */ 95 /* warning and fall through, treat as MFP_LPM_DEFAULT */
96 pr_warning("%s: GPIO%d: unsupported low power mode\n", 96 pr_warn("%s: GPIO%d: unsupported low power mode\n",
97 __func__, gpio); 97 __func__, gpio);
98 break; 98 break;
99 } 99 }
100 100
@@ -107,14 +107,12 @@ static int __mfp_config_gpio(unsigned gpio, unsigned long c)
107 * configurations of those pins not able to wakeup 107 * configurations of those pins not able to wakeup
108 */ 108 */
109 if ((c & MFP_LPM_CAN_WAKEUP) && !gpio_desc[gpio].can_wakeup) { 109 if ((c & MFP_LPM_CAN_WAKEUP) && !gpio_desc[gpio].can_wakeup) {
110 pr_warning("%s: GPIO%d unable to wakeup\n", 110 pr_warn("%s: GPIO%d unable to wakeup\n", __func__, gpio);
111 __func__, gpio);
112 return -EINVAL; 111 return -EINVAL;
113 } 112 }
114 113
115 if ((c & MFP_LPM_CAN_WAKEUP) && is_out) { 114 if ((c & MFP_LPM_CAN_WAKEUP) && is_out) {
116 pr_warning("%s: output GPIO%d unable to wakeup\n", 115 pr_warn("%s: output GPIO%d unable to wakeup\n", __func__, gpio);
117 __func__, gpio);
118 return -EINVAL; 116 return -EINVAL;
119 } 117 }
120 118
@@ -126,7 +124,7 @@ static inline int __mfp_validate(int mfp)
126 int gpio = mfp_to_gpio(mfp); 124 int gpio = mfp_to_gpio(mfp);
127 125
128 if ((mfp > MFP_PIN_GPIO127) || !gpio_desc[gpio].valid) { 126 if ((mfp > MFP_PIN_GPIO127) || !gpio_desc[gpio].valid) {
129 pr_warning("%s: GPIO%d is invalid pin\n", __func__, gpio); 127 pr_warn("%s: GPIO%d is invalid pin\n", __func__, gpio);
130 return -1; 128 return -1;
131 } 129 }
132 130
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c
index 131991629116..29019beae591 100644
--- a/arch/arm/mach-pxa/poodle.c
+++ b/arch/arm/mach-pxa/poodle.c
@@ -446,7 +446,7 @@ static void __init poodle_init(void)
446 446
447 ret = platform_add_devices(devices, ARRAY_SIZE(devices)); 447 ret = platform_add_devices(devices, ARRAY_SIZE(devices));
448 if (ret) 448 if (ret)
449 pr_warning("poodle: Unable to register LoCoMo device\n"); 449 pr_warn("poodle: Unable to register LoCoMo device\n");
450 450
451 pxa_set_fb_info(&poodle_locomo_device.dev, &poodle_fb_info); 451 pxa_set_fb_info(&poodle_locomo_device.dev, &poodle_fb_info);
452 pxa_set_udc_info(&udc_info); 452 pxa_set_udc_info(&udc_info);
diff --git a/arch/arm/mach-pxa/pxa3xx-ulpi.c b/arch/arm/mach-pxa/pxa3xx-ulpi.c
index e329ccefd364..614003e8b081 100644
--- a/arch/arm/mach-pxa/pxa3xx-ulpi.c
+++ b/arch/arm/mach-pxa/pxa3xx-ulpi.c
@@ -74,7 +74,7 @@ static int pxa310_ulpi_poll(void)
74 cpu_relax(); 74 cpu_relax();
75 } 75 }
76 76
77 pr_warning("%s: ULPI access timed out!\n", __func__); 77 pr_warn("%s: ULPI access timed out!\n", __func__);
78 78
79 return -ETIMEDOUT; 79 return -ETIMEDOUT;
80} 80}
@@ -84,7 +84,7 @@ static int pxa310_ulpi_read(struct usb_phy *otg, u32 reg)
84 int err; 84 int err;
85 85
86 if (pxa310_ulpi_get_phymode() != SYNCH) { 86 if (pxa310_ulpi_get_phymode() != SYNCH) {
87 pr_warning("%s: PHY is not in SYNCH mode!\n", __func__); 87 pr_warn("%s: PHY is not in SYNCH mode!\n", __func__);
88 return -EBUSY; 88 return -EBUSY;
89 } 89 }
90 90
@@ -101,7 +101,7 @@ static int pxa310_ulpi_read(struct usb_phy *otg, u32 reg)
101static int pxa310_ulpi_write(struct usb_phy *otg, u32 val, u32 reg) 101static int pxa310_ulpi_write(struct usb_phy *otg, u32 val, u32 reg)
102{ 102{
103 if (pxa310_ulpi_get_phymode() != SYNCH) { 103 if (pxa310_ulpi_get_phymode() != SYNCH) {
104 pr_warning("%s: PHY is not in SYNCH mode!\n", __func__); 104 pr_warn("%s: PHY is not in SYNCH mode!\n", __func__);
105 return -EBUSY; 105 return -EBUSY;
106 } 106 }
107 107
diff --git a/arch/arm/mach-pxa/raumfeld.c b/arch/arm/mach-pxa/raumfeld.c
index 8386dc30b3e4..a762b23ac830 100644
--- a/arch/arm/mach-pxa/raumfeld.c
+++ b/arch/arm/mach-pxa/raumfeld.c
@@ -521,7 +521,7 @@ static void __init raumfeld_w1_init(void)
521 "W1 external pullup enable"); 521 "W1 external pullup enable");
522 522
523 if (ret < 0) 523 if (ret < 0)
524 pr_warning("Unable to request GPIO_W1_PULLUP_ENABLE\n"); 524 pr_warn("Unable to request GPIO_W1_PULLUP_ENABLE\n");
525 else 525 else
526 gpio_direction_output(GPIO_W1_PULLUP_ENABLE, 0); 526 gpio_direction_output(GPIO_W1_PULLUP_ENABLE, 0);
527 527
@@ -600,7 +600,7 @@ static void __init raumfeld_lcd_init(void)
600 600
601 ret = gpio_request(GPIO_TFT_VA_EN, "display VA enable"); 601 ret = gpio_request(GPIO_TFT_VA_EN, "display VA enable");
602 if (ret < 0) 602 if (ret < 0)
603 pr_warning("Unable to request GPIO_TFT_VA_EN\n"); 603 pr_warn("Unable to request GPIO_TFT_VA_EN\n");
604 else 604 else
605 gpio_direction_output(GPIO_TFT_VA_EN, 1); 605 gpio_direction_output(GPIO_TFT_VA_EN, 1);
606 606
@@ -608,7 +608,7 @@ static void __init raumfeld_lcd_init(void)
608 608
609 ret = gpio_request(GPIO_DISPLAY_ENABLE, "display enable"); 609 ret = gpio_request(GPIO_DISPLAY_ENABLE, "display enable");
610 if (ret < 0) 610 if (ret < 0)
611 pr_warning("Unable to request GPIO_DISPLAY_ENABLE\n"); 611 pr_warn("Unable to request GPIO_DISPLAY_ENABLE\n");
612 else 612 else
613 gpio_direction_output(GPIO_DISPLAY_ENABLE, 1); 613 gpio_direction_output(GPIO_DISPLAY_ENABLE, 1);
614 614
@@ -814,17 +814,17 @@ static void __init raumfeld_power_init(void)
814 /* Set PEN2 high to enable maximum charge current */ 814 /* Set PEN2 high to enable maximum charge current */
815 ret = gpio_request(GPIO_CHRG_PEN2, "CHRG_PEN2"); 815 ret = gpio_request(GPIO_CHRG_PEN2, "CHRG_PEN2");
816 if (ret < 0) 816 if (ret < 0)
817 pr_warning("Unable to request GPIO_CHRG_PEN2\n"); 817 pr_warn("Unable to request GPIO_CHRG_PEN2\n");
818 else 818 else
819 gpio_direction_output(GPIO_CHRG_PEN2, 1); 819 gpio_direction_output(GPIO_CHRG_PEN2, 1);
820 820
821 ret = gpio_request(GPIO_CHARGE_DC_OK, "CABLE_DC_OK"); 821 ret = gpio_request(GPIO_CHARGE_DC_OK, "CABLE_DC_OK");
822 if (ret < 0) 822 if (ret < 0)
823 pr_warning("Unable to request GPIO_CHARGE_DC_OK\n"); 823 pr_warn("Unable to request GPIO_CHARGE_DC_OK\n");
824 824
825 ret = gpio_request(GPIO_CHARGE_USB_SUSP, "CHARGE_USB_SUSP"); 825 ret = gpio_request(GPIO_CHARGE_USB_SUSP, "CHARGE_USB_SUSP");
826 if (ret < 0) 826 if (ret < 0)
827 pr_warning("Unable to request GPIO_CHARGE_USB_SUSP\n"); 827 pr_warn("Unable to request GPIO_CHARGE_USB_SUSP\n");
828 else 828 else
829 gpio_direction_output(GPIO_CHARGE_USB_SUSP, 0); 829 gpio_direction_output(GPIO_CHARGE_USB_SUSP, 0);
830 830
@@ -976,19 +976,19 @@ static void __init raumfeld_audio_init(void)
976 976
977 ret = gpio_request(GPIO_CODEC_RESET, "cs4270 reset"); 977 ret = gpio_request(GPIO_CODEC_RESET, "cs4270 reset");
978 if (ret < 0) 978 if (ret < 0)
979 pr_warning("unable to request GPIO_CODEC_RESET\n"); 979 pr_warn("unable to request GPIO_CODEC_RESET\n");
980 else 980 else
981 gpio_direction_output(GPIO_CODEC_RESET, 1); 981 gpio_direction_output(GPIO_CODEC_RESET, 1);
982 982
983 ret = gpio_request(GPIO_SPDIF_RESET, "ak4104 s/pdif reset"); 983 ret = gpio_request(GPIO_SPDIF_RESET, "ak4104 s/pdif reset");
984 if (ret < 0) 984 if (ret < 0)
985 pr_warning("unable to request GPIO_SPDIF_RESET\n"); 985 pr_warn("unable to request GPIO_SPDIF_RESET\n");
986 else 986 else
987 gpio_direction_output(GPIO_SPDIF_RESET, 1); 987 gpio_direction_output(GPIO_SPDIF_RESET, 1);
988 988
989 ret = gpio_request(GPIO_MCLK_RESET, "MCLK reset"); 989 ret = gpio_request(GPIO_MCLK_RESET, "MCLK reset");
990 if (ret < 0) 990 if (ret < 0)
991 pr_warning("unable to request GPIO_MCLK_RESET\n"); 991 pr_warn("unable to request GPIO_MCLK_RESET\n");
992 else 992 else
993 gpio_direction_output(GPIO_MCLK_RESET, 1); 993 gpio_direction_output(GPIO_MCLK_RESET, 1);
994 994
@@ -1019,20 +1019,20 @@ static void __init raumfeld_common_init(void)
1019 1019
1020 ret = gpio_request(GPIO_W2W_RESET, "Wi2Wi reset"); 1020 ret = gpio_request(GPIO_W2W_RESET, "Wi2Wi reset");
1021 if (ret < 0) 1021 if (ret < 0)
1022 pr_warning("Unable to request GPIO_W2W_RESET\n"); 1022 pr_warn("Unable to request GPIO_W2W_RESET\n");
1023 else 1023 else
1024 gpio_direction_output(GPIO_W2W_RESET, 0); 1024 gpio_direction_output(GPIO_W2W_RESET, 0);
1025 1025
1026 ret = gpio_request(GPIO_W2W_PDN, "Wi2Wi powerup"); 1026 ret = gpio_request(GPIO_W2W_PDN, "Wi2Wi powerup");
1027 if (ret < 0) 1027 if (ret < 0)
1028 pr_warning("Unable to request GPIO_W2W_PDN\n"); 1028 pr_warn("Unable to request GPIO_W2W_PDN\n");
1029 else 1029 else
1030 gpio_direction_output(GPIO_W2W_PDN, 0); 1030 gpio_direction_output(GPIO_W2W_PDN, 0);
1031 1031
1032 /* this can be used to switch off the device */ 1032 /* this can be used to switch off the device */
1033 ret = gpio_request(GPIO_SHUTDOWN_SUPPLY, "supply shutdown"); 1033 ret = gpio_request(GPIO_SHUTDOWN_SUPPLY, "supply shutdown");
1034 if (ret < 0) 1034 if (ret < 0)
1035 pr_warning("Unable to request GPIO_SHUTDOWN_SUPPLY\n"); 1035 pr_warn("Unable to request GPIO_SHUTDOWN_SUPPLY\n");
1036 else 1036 else
1037 gpio_direction_output(GPIO_SHUTDOWN_SUPPLY, 0); 1037 gpio_direction_output(GPIO_SHUTDOWN_SUPPLY, 0);
1038 1038
@@ -1051,7 +1051,7 @@ static void __init raumfeld_controller_init(void)
1051 1051
1052 ret = gpio_request(GPIO_SHUTDOWN_BATT, "battery shutdown"); 1052 ret = gpio_request(GPIO_SHUTDOWN_BATT, "battery shutdown");
1053 if (ret < 0) 1053 if (ret < 0)
1054 pr_warning("Unable to request GPIO_SHUTDOWN_BATT\n"); 1054 pr_warn("Unable to request GPIO_SHUTDOWN_BATT\n");
1055 else 1055 else
1056 gpio_direction_output(GPIO_SHUTDOWN_BATT, 0); 1056 gpio_direction_output(GPIO_SHUTDOWN_BATT, 0);
1057 1057