[PATCH 11/29] drivers/gpio: Update WARN uses

From: Joe Perches
Date: Mon Dec 06 2010 - 17:10:10 EST


Align arguments.
Remove a trailing space before a newline from pr_err

Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
drivers/gpio/gpiolib.c | 4 ++--
drivers/gpio/it8761e_gpio.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 21da9c1..cef8b3a 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -96,9 +96,9 @@ static int gpio_ensure_requested(struct gpio_desc *desc, unsigned offset)
const int gpio = chip->base + offset;

if (WARN(test_and_set_bit(FLAG_REQUESTED, &desc->flags) == 0,
- "autorequest GPIO-%d\n", gpio)) {
+ "autorequest GPIO-%d\n", gpio)) {
if (!try_module_get(chip->owner)) {
- pr_err("GPIO-%d: module can't be gotten \n", gpio);
+ pr_err("GPIO-%d: module can't be gotten\n", gpio);
clear_bit(FLAG_REQUESTED, &desc->flags);
/* lose */
return -EIO;
diff --git a/drivers/gpio/it8761e_gpio.c b/drivers/gpio/it8761e_gpio.c
index 48fc43c..9109074 100644
--- a/drivers/gpio/it8761e_gpio.c
+++ b/drivers/gpio/it8761e_gpio.c
@@ -220,7 +220,7 @@ static void __exit it8761e_gpio_exit(void)
int ret = gpiochip_remove(&it8761e_gpio_chip);

WARN(ret, "%s(): gpiochip_remove() failed, ret=%d\n",
- __func__, ret);
+ __func__, ret);

release_region(gpio_ba, GPIO_IOSIZE);
gpio_ba = 0;
--
1.7.3.2.245.g03276.dirty

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/