* [PATCH] Drivers: GPIO: Fix printk() warning style
@ 2017-12-20 12:16 venkat.prashanth2498
0 siblings, 0 replies; only message in thread
From: venkat.prashanth2498 @ 2017-12-20 12:16 UTC (permalink / raw)
To: linus.walleij, gnurou; +Cc: linux-gpio, Venkat Prashanth B U
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(-)
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-20 12:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-20 12:16 [PATCH] Drivers: GPIO: Fix printk() warning style venkat.prashanth2498
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).