diff options
author | Aniroop Mathur <aniroop.mathur@gmail.com> | 2014-12-29 18:06:48 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-12-29 18:09:32 +0100 |
commit | 39138818a4f5c62d70f35504477c2509f982f211 (patch) | |
tree | 5a045e59d0331004de8f524d40232e33b64cd2d2 /drivers/regulator | |
parent | regulator: core: Avoid negative regulator no & initialize it to -1 (diff) | |
download | linux-39138818a4f5c62d70f35504477c2509f982f211.tar.xz linux-39138818a4f5c62d70f35504477c2509f982f211.zip |
regulator: core: Fix format specifier warning
Signed-off-by: Aniroop Mathur <a.mathur@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 4bc5ea9721c2..c2554d89d472 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -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); |