Drivers: GPIO: Fix printk() warning style
diff mbox series

Message ID 1513772213-30026-1-git-send-email-venkat.prashanth2498@gmail.com
State New
Headers show
Series
  • Drivers: GPIO: Fix printk() warning style
Related show

Commit Message

venkat.prashanth2498@gmail.com Dec. 20, 2017, 12:16 p.m. UTC
From: Venkat Prashanth B U <venkat.prashanth2498@gmail.com>

Replace printk(KERN_INFO...) by pr_info for more uniform reporting
of debug information. Issue found by checkpatch.

Signed-off-by: Venkat Prashanth B U <venkat.prashanth2498@gmail.com>
---
 drivers/gpio/gpio-amd8111.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch
diff mbox series

diff --git a/drivers/gpio/gpio-amd8111.c b/drivers/gpio/gpio-amd8111.c
index d00d819..4d72300 100644
--- a/drivers/gpio/gpio-amd8111.c
+++ b/drivers/gpio/gpio-amd8111.c
@@ -224,10 +224,10 @@  found:

 	spin_lock_init(&gp.lock);

-	printk(KERN_INFO "AMD-8111 GPIO detected\n");
+	pr_info("AMD-8111 GPIO detected\n");
 	err = gpiochip_add(&gp.chip);
 	if (err) {
-		printk(KERN_ERR "GPIO registering failed (%d)\n",
+		pr_info("GPIO registering failed (%d)\n",
 		       err);
 		ioport_unmap(gp.pm);
 		release_region(gp.pmbase + PMBASE_OFFSET, PMBASE_SIZE);