[PATCH 1/2] regulator: allow drivers in modules to register fixed regulators

From: Daniel Kurtz
Date: Tue Jul 17 2018 - 20:49:16 EST


Sound machine drivers tend to live in modules. Sometimes such a machine
driver needs to register a fixed regulator to provide to a codec.

Export regulator_register_always_on() such that this is possible.

Change-Id: I2906f96df278b5fa65d40d3a777bf6d3d91841d2
Signed-off-by: Daniel Kurtz <djkurtz@xxxxxxxxxxxx>
---
drivers/regulator/fixed-helper.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/fixed-helper.c b/drivers/regulator/fixed-helper.c
index 777fac6fb4cb0a..f53fbda043f525 100644
--- a/drivers/regulator/fixed-helper.c
+++ b/drivers/regulator/fixed-helper.c
@@ -60,3 +60,4 @@ struct platform_device *regulator_register_always_on(int id, const char *name,

return &data->pdev;
}
+EXPORT_SYMBOL_GPL(regulator_register_always_on);
--
2.18.0.203.gfac676dfb9-goog