regulator: mt6315: Don't ignore devm_regulator_register failure
authorAxel Lin <axel.lin@ingics.com>
Sun, 30 May 2021 02:05:43 +0000 (10:05 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 1 Jun 2021 13:05:22 +0000 (14:05 +0100)
commit7f8c8394425fd5e1449bf0a81ab6ec718cd4346b
tree9269b3a44ca9c3335f1e3b1566472aa3276e164b
parent4c4fce171c4ca08cd98be7db350e6950630b046a
regulator: mt6315: Don't ignore devm_regulator_register failure

Also use dev_err instead of dev_notice for messages in error conditions.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210530020543.418634-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6315-regulator.c