summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorAniroop Mathur <aniroop.mathur@gmail.com>2014-12-29 22:36:48 +0530
committerMark Brown <broonie@kernel.org>2014-12-29 17:09:32 +0000
commit39138818a4f5c62d70f35504477c2509f982f211 (patch)
tree5a045e59d0331004de8f524d40232e33b64cd2d2 /drivers/regulator
parent72dca06f62c50415de3202f204200f58769d0b8b (diff)
regulator: core: Fix format specifier warning
Signed-off-by: Aniroop Mathur <a.mathur@samsung.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 4bc5ea9721c2..c2554d89d472 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -3659,7 +3659,7 @@ regulator_register(const struct regulator_desc *regulator_desc,
rdev->dev.class = &regulator_class;
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);