Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754485Ab0LFWJL (ORCPT ); Mon, 6 Dec 2010 17:09:11 -0500 Received: from mail.perches.com ([173.55.12.10]:2341 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754280Ab0LFWFW (ORCPT ); Mon, 6 Dec 2010 17:05:22 -0500 From: Joe Perches To: Jiri Kosina Cc: linux-kernel@vger.kernel.org Subject: [PATCH 11/29] drivers/gpio: Update WARN uses Date: Mon, 6 Dec 2010 14:05:01 -0800 Message-Id: <838a4140587e8abbd8644d4497818c3127cb4574.1291670105.git.joe@perches.com> X-Mailer: git-send-email 1.7.3.3.398.g0b0cd.dirty In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1621 Lines: 46 Align arguments. Remove a trailing space before a newline from pr_err Signed-off-by: Joe Perches --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/