mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 04:03:58 +08:00
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:
parent
72dca06f62
commit
39138818a4
@ -3659,7 +3659,7 @@ regulator_register(const struct regulator_desc *regulator_desc,
|
||||
rdev->dev.class = ®ulator_class;
|
||||
rdev->dev.parent = dev;
|
||||
dev_set_name(&rdev->dev, "regulator.%lu",
|
||||
atomic_inc_return(®ulator_no));
|
||||
(unsigned long) atomic_inc_return(®ulator_no));
|
||||
ret = device_register(&rdev->dev);
|
||||
if (ret != 0) {
|
||||
put_device(&rdev->dev);
|
||||
|
Loading…
Reference in New Issue
Block a user