mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regulator: core: Fix format specifier warning
@ 2014-12-29 17:06 Aniroop Mathur
  2014-12-29 17:10 ` Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Aniroop Mathur @ 2014-12-29 17:06 UTC (permalink / raw)
  To: lgirdwood, broonie, linux-kernel; +Cc: aniroop.mathur, a.mathur

Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
---
 drivers/regulator/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index b0729ef..f380f04 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -3551,7 +3551,7 @@ regulator_register(const struct regulator_desc *regulator_desc,
 	rdev->dev.of_node = of_node_get(config->of_node);
 	rdev->dev.parent = dev;
 	dev_set_name(&rdev->dev, "regulator.%lu",
-		     atomic_inc_return(&regulator_no));
+		    (unsigned long) atomic_inc_return(&regulator_no));
 	ret = device_register(&rdev->dev);
 	if (ret != 0) {
 		put_device(&rdev->dev);
-- 
1.9.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-29 17:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-29 17:06 [PATCH] regulator: core: Fix format specifier warning Aniroop Mathur
2014-12-29 17:10 ` Mark Brown
2014-12-29 17:15   ` Aniroop Mathur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®