diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 4bc5ea9721c22c643e9c641b016bc2aa8cbc1ae8..c2554d89d472f2d7ac470bfd5aacbdd7c55a3c57 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);