summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorAniroop Mathur <aniroop.mathur@gmail.com>2014-12-29 18:06:48 +0100
committerMark Brown <broonie@kernel.org>2014-12-29 18:09:32 +0100
commit39138818a4f5c62d70f35504477c2509f982f211 (patch)
tree5a045e59d0331004de8f524d40232e33b64cd2d2 /drivers/regulator
parentregulator: core: Avoid negative regulator no & initialize it to -1 (diff)
downloadlinux-39138818a4f5c62d70f35504477c2509f982f211.tar.xz
linux-39138818a4f5c62d70f35504477c2509f982f211.zip
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);