[PATCH] Drivers: GPIO: Fix printk() warning style

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Venkat Prashanth B U <venkat.prashanth2498@xxxxxxxxx>

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@xxxxxxxxx>
---
 drivers/gpio/gpio-amd8111.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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);
--
1.9.1

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



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux