1
0
Fork 0

regulator: core: Fix format specifier warning

Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
hifive-unleashed-5.1
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);