diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-01-03 08:01:47 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-03 08:02:39 -0500 |
commit | 0384618a79ccfafd05ca1538867764f7c4b7916b (patch) | |
tree | 7f2de7250c84a6ad8fd57383f7e0f73e685a9f4b /drivers/regulator/core.c | |
parent | 19280e40714c9a3c55ab47f76df110072f6cde5e (diff) |
regulator: core: Fix comment for regulator_register()
regulator_register() does not return 0 on success, fix the comment.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r-- | drivers/regulator/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index d7448adc7a2c..278584302f2d 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c | |||
@@ -3321,7 +3321,8 @@ static void rdev_init_debugfs(struct regulator_dev *rdev) | |||
3321 | * @config: runtime configuration for regulator | 3321 | * @config: runtime configuration for regulator |
3322 | * | 3322 | * |
3323 | * Called by regulator drivers to register a regulator. | 3323 | * Called by regulator drivers to register a regulator. |
3324 | * Returns 0 on success. | 3324 | * Returns a valid pointer to struct regulator_dev on success |
3325 | * or an ERR_PTR() on error. | ||
3325 | */ | 3326 | */ |
3326 | struct regulator_dev * | 3327 | struct regulator_dev * |
3327 | regulator_register(const struct regulator_desc *regulator_desc, | 3328 | regulator_register(const struct regulator_desc *regulator_desc, |