2014-12-29 17:06:45

by Aniroop Mathur

[permalink] [raw]
Subject: [PATCH] regulator: core: Fix format specifier warning

Signed-off-by: Aniroop Mathur <[email protected]>
---
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


2014-12-29 17:10:17

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] regulator: core: Fix format specifier warning

On Mon, Dec 29, 2014 at 10:36:48PM +0530, Aniroop Mathur wrote:
> Signed-off-by: Aniroop Mathur <[email protected]>

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


Attachments:
(No filename) (273.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments

2014-12-29 17:15:41

by Aniroop Mathur

[permalink] [raw]
Subject: Re: [PATCH] regulator: core: Fix format specifier warning

On Mon, Dec 29, 2014 at 10:40 PM, Mark Brown <[email protected]> wrote:
> On Mon, Dec 29, 2014 at 10:36:48PM +0530, Aniroop Mathur wrote:
>> Signed-off-by: Aniroop Mathur <[email protected]>
>
> 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 !!