diff options
author | SeongJae Park <sj38.park@gmail.com> | 2014-02-12 00:11:07 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-12 06:55:40 -0500 |
commit | dae6cdb422ba9708f152f313046dfc98a9336235 (patch) | |
tree | 8f93ee967d6e1c2ee3683e69027b50a3f0b51f80 /drivers | |
parent | 8b61a28d616a34beaa425873acd37a8b12929455 (diff) |
regulator: da9055: declare return type of inline function exclusively
da9055_regulator_dt_init does not declare return type and it cause
following build warning.
drivers/regulator/da9055-regulator.c:582:15: warning:
return type defaults to ‘int’ [-Wreturn-type]
static inline da9055_regulator_dt_init(struct platform_device *pdev,
^
Fix the warning by declare return type as int exclusively.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/regulator/da9055-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator/da9055-regulator.c index d90f785829c4..3f334ea23c95 100644 --- a/drivers/regulator/da9055-regulator.c +++ b/drivers/regulator/da9055-regulator.c | |||
@@ -579,7 +579,7 @@ static int da9055_regulator_dt_init(struct platform_device *pdev, | |||
579 | return 0; | 579 | return 0; |
580 | } | 580 | } |
581 | #else | 581 | #else |
582 | static inline da9055_regulator_dt_init(struct platform_device *pdev, | 582 | static inline int da9055_regulator_dt_init(struct platform_device *pdev, |
583 | struct da9055_regulator *regulator, | 583 | struct da9055_regulator *regulator, |
584 | struct regulator_config *config, | 584 | struct regulator_config *config, |
585 | int regid) | 585 | int regid) |