regulator: 88pm800: Add missing config.of_node setting for regulator register
PATCH 1/2 regulator: 88pm800: Add missing config.of_node setting for regulator register
Signed-off-by Axel Lin <[email protected]>
--- drivers/regulator/88pm800.c | 1 + 1 file changed, 1 insertion(+)
drivers/regulator/88pm800.c +1 -0
@@ -331,6 +331,7 @@ static int pm800_regulator_probe(struct platform_device *pdev) config.init_data = init_data; config.driver_data = info; config.regmap = pm800_data->map; + config.of_node = pm800_regulator_matches[i].of_node; pm800_data->regulators[i] =regulator_register (&info->desc, &config);
Signature · 1 line
1.8.1.2
PATCH 2/2 regulator: 88pm800: Depend on MFD_88PM800 rather than MFD_88PM800=y
This driver can be built as a module, make it depend on MFD_88PM800. Otherwise, we are not able to select this driver when MFD_88PM800=m.
Signed-off-by Axel Lin <[email protected]>
--- drivers/regulator/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/Kconfig +1 -1
@@ -66,7 +66,7 @@ config REGULATOR_USERSPACE_CONSUMER config REGULATOR_88PM800 tristate "Marvell 88PM800 Power regulators" - depends on MFD_88PM800=y + depends on MFD_88PM800 help This driver supports Marvell 88PM800 voltage regulator chips. It delivers digitally programmable output,
Signature · 1 line
1.8.1.2
Quoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>
Applied both, thanks.