[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <002f01cd8f4b$b1100a30$13301e90$%han@samsung.com>
Date: Mon, 10 Sep 2012 20:59:11 +0900
From: Jingoo Han <jg1.han@...sung.com>
To: 'Grant Likely' <grant.likely@...retlab.ca>,
'Linus Walleij' <linus.walleij@...aro.org>
Cc: linux-kernel@...r.kernel.org, 'Jingoo Han' <jg1.han@...sung.com>
Subject: [PATCH] gpio: samsung: use pr_* instead of printk
This patch uses pr_* instead of printk.
Signed-off-by: Jingoo Han <jg1.han@...sung.com>
---
drivers/gpio/gpio-samsung.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c
index ba126cc..e38d990 100644
--- a/drivers/gpio/gpio-samsung.c
+++ b/drivers/gpio/gpio-samsung.c
@@ -45,7 +45,7 @@
#ifndef DEBUG_GPIO
#define gpio_dbg(x...) do { } while (0)
#else
-#define gpio_dbg(x...) printk(KERN_DEBUG x)
+#define gpio_dbg(x...) pr_debug(x)
#endif
int samsung_gpio_setpull_updown(struct samsung_gpio_chip *chip,
@@ -926,10 +926,10 @@ static void __init samsung_gpiolib_add(struct samsung_gpio_chip *chip)
#ifdef CONFIG_PM
if (chip->pm != NULL) {
if (!chip->pm->save || !chip->pm->resume)
- printk(KERN_ERR "gpio: %s has missing PM functions\n",
+ pr_err("gpio: %s has missing PM functions\n",
gc->label);
} else
- printk(KERN_ERR "gpio: %s has no PM function\n", gc->label);
+ pr_err("gpio: %s has no PM function\n", gc->label);
#endif
/* gpiochip_add() prints own failure message on error. */
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists