regulator: devres: unexport devm_regulator_unregister_supply_alias()
authorAlexandru Ardelean <aardelean@deviqon.com>
Fri, 25 Jun 2021 12:23:24 +0000 (15:23 +0300)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:50:34 +0000 (23:50 +0100)
commit4d9f4d1de3ceb84fa6ce68177a26b8fac6a71290
treea62957d50b9339474590522dc7ad10b85100e809
parenteed43b96ede9c3f018ad24149de83f24b86ad729
regulator: devres: unexport devm_regulator_unregister_supply_alias()

This API hook isn't used anywhere outside of the regulator devres code.
This function is needed for the devm_regulator_bulk_register_supply_alias()
function on the error path, to cleanup any previously registered supply
aliases.

This change makes the devm_regulator_unregister_supply_alias() local to the
regulator core framework, to avoid it being used in any weird logic.
It's also removing the doc-string for
devm_regulator_unregister_supply_alias(), since it doesn't need to be
documented anymore, as no other external consumer should use it.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210625122324.327585-5-aardelean@deviqon.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/devres.c
include/linux/regulator/consumer.h