regulator: core: Fix format specifier warning

Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Aniroop Mathur 2014-12-29 22:36:48 +05:30 committed by Mark Brown
parent 72dca06f62
commit 39138818a4
1 changed files with 1 additions and 1 deletions

View 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);