Skip to contentSkip to conversation

regulator: core: Fix format specifier warning

PATCH Applied Aniroop Mathur 2 participants 3 messages Dec 29, 2014 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regulator: core: Fix format specifier warning

---
 drivers/regulator/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/core.c +1 -1
index b0729ef..f380f04 100644
@@ -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);
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 1 line · Aniroop Mathur

Applied, thanks. Please check what you're generating your patches against - they aren't applying cleanly, you should be using current development code.

#2 lore raw
Quoted 6 lines · Mark Brown
Quoted 1 line · Aniroop Mathur

Applied, thanks. Please check what you're generating your patches against - they aren't applying cleanly, you should be using current development code.

Sure, I will take care of it from next time.
Thanks !!