提交 39138818 编写于 作者: A Aniroop Mathur 提交者: Mark Brown

regulator: core: Fix format specifier warning

Signed-off-by: NAniroop Mathur <a.mathur@samsung.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 72dca06f
...@@ -3659,7 +3659,7 @@ regulator_register(const struct regulator_desc *regulator_desc, ...@@ -3659,7 +3659,7 @@ regulator_register(const struct regulator_desc *regulator_desc,
rdev->dev.class = &regulator_class; rdev->dev.class = &regulator_class;
rdev->dev.parent = dev; rdev->dev.parent = dev;
dev_set_name(&rdev->dev, "regulator.%lu", dev_set_name(&rdev->dev, "regulator.%lu",
atomic_inc_return(&regulator_no)); (unsigned long) atomic_inc_return(&regulator_no));
ret = device_register(&rdev->dev); ret = device_register(&rdev->dev);
if (ret != 0) { if (ret != 0) {
put_device(&rdev->dev); put_device(&rdev->dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册