regulator: core: Fix format specifier warning
authorAniroop Mathur <aniroop.mathur@gmail.com>
Mon, 29 Dec 2014 17:06:48 +0000 (22:36 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 29 Dec 2014 17:09:32 +0000 (17:09 +0000)
Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c

index 4bc5ea9721c22c643e9c641b016bc2aa8cbc1ae8..c2554d89d472f2d7ac470bfd5aacbdd7c55a3c57 100644 (file)
@@ -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);