From: Axel Lin Date: Thu, 3 Jan 2013 13:01:47 +0000 (+0800) Subject: regulator: core: Fix comment for regulator_register() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0384618a79ccfafd05ca1538867764f7c4b7916b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git regulator: core: Fix comment for regulator_register() regulator_register() does not return 0 on success, fix the comment. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- 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) * @config: runtime configuration for regulator * * Called by regulator drivers to register a regulator. - * Returns 0 on success. + * Returns a valid pointer to struct regulator_dev on success + * or an ERR_PTR() on error. */ struct regulator_dev * regulator_register(const struct regulator_desc *regulator_desc,