[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1292273834.26970.58.camel@Joe-Laptop>
Date: Mon, 13 Dec 2010 12:57:14 -0800
From: Joe Perches <joe@...ches.com>
To: Randy Dunlap <randy.dunlap@...cle.com>
Cc: Stephen Rothwell <sfr@...b.auug.org.au>,
akpm <akpm@...ux-foundation.org>, linux-next@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH V3 -next] cs5535: fix printk format warnings
Use vsprintf extension %pR to format resource.
Original-patch-by: Randy Dunlap <randy.dunlap@...cle.com>
Signed-off-by: Joe Perches <joe@...ches.com>
---
V3 - Might as well do both files, thanks Randy...
Removed Andres Salomon <dilinger@...labora.co.uk> from cc.
It seems that he's not there anymore.
drivers/gpio/cs5535-gpio.c | 3 +--
drivers/misc/cs5535-mfgpt.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpio/cs5535-gpio.c b/drivers/gpio/cs5535-gpio.c
index b566fd5e..d7da7a1 100644
--- a/drivers/gpio/cs5535-gpio.c
+++ b/drivers/gpio/cs5535-gpio.c
@@ -266,8 +266,7 @@ static int __devinit cs5535_gpio_probe(struct platform_device *pdev)
cs5535_gpio_chip.pdev = pdev;
spin_lock_init(&cs5535_gpio_chip.lock);
- dev_info(&pdev->dev, "region 0x%x - 0x%x reserved\n",
- res->start, res->end);
+ dev_info(&pdev->dev, "reserved resource region %pR\n", res);
/* mask out reserved pins */
mask &= 0x1F7FFFFF;
diff --git a/drivers/misc/cs5535-mfgpt.c b/drivers/misc/cs5535-mfgpt.c
index 2669306..e90506b 100644
--- a/drivers/misc/cs5535-mfgpt.c
+++ b/drivers/misc/cs5535-mfgpt.c
@@ -317,8 +317,7 @@ static int __devinit cs5535_mfgpt_probe(struct platform_device *pdev)
cs5535_mfgpt_chip.pdev = pdev;
spin_lock_init(&cs5535_mfgpt_chip.lock);
- dev_info(&pdev->dev, "region 0x%x - 0x%x reserved\n", res->start,
- res->end);
+ dev_info(&pdev->dev, "reserved resource region %pR\n", res);
/* detect the available timers */
t = scan_timers(&cs5535_mfgpt_chip);
--
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