From 39138818a4f5c62d70f35504477c2509f982f211 Mon Sep 17 00:00:00 2001 From: Aniroop Mathur Date: Mon, 29 Dec 2014 22:36:48 +0530 Subject: [PATCH] regulator: core: Fix format specifier warning Signed-off-by: Aniroop Mathur Signed-off-by: Mark Brown --- drivers/regulator/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1