aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAniroop Mathur <aniroop.mathur@gmail.com>2014-12-29 12:06:48 -0500
committerMark Brown <broonie@kernel.org>2014-12-29 12:09:32 -0500
commit39138818a4f5c62d70f35504477c2509f982f211 (patch)
tree5a045e59d0331004de8f524d40232e33b64cd2d2
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>
-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,
3659 rdev->dev.class = &regulator_class; 3659 rdev->dev.class = &regulator_class;
3660 rdev->dev.parent = dev; 3660 rdev->dev.parent = dev;
3661 dev_set_name(&rdev->dev, "regulator.%lu", 3661 dev_set_name(&rdev->dev, "regulator.%lu",
3662 atomic_inc_return(&regulator_no)); 3662 (unsigned long) atomic_inc_return(&regulator_no));
3663 ret = device_register(&rdev->dev); 3663 ret = device_register(&rdev->dev);
3664 if (ret != 0) { 3664 if (ret != 0) {
3665 put_device(&rdev->dev); 3665 put_device(&rdev->dev);