Skip to contentSkip to conversation

regulator: 88pm800: Add missing config.of_node setting for regulator register

PATCH Applied Axel Lin 2 participants 3 messages Jul 19, 2013 Voltage and current regulator framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/2 regulator: 88pm800: Add missing config.of_node setting for regulator register

---
 drivers/regulator/88pm800.c | 1 +
 1 file changed, 1 insertion(+)
drivers/regulator/88pm800.c +1 -0
index a7d962f..fc0c352 100644
@@ -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
author
#1 lore raw

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.

---
 drivers/regulator/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/Kconfig +1 -1
index 65b7d5b..b05fa90 100644
@@ -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