public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] regulator: 88pm800: Add missing config.of_node setting for regulator register
@ 2013-07-19  1:16 Axel Lin
  2013-07-19  1:17 ` [PATCH 2/2] regulator: 88pm800: Depend on MFD_88PM800 rather than MFD_88PM800=y Axel Lin
  2013-07-19 17:24 ` [PATCH 1/2] regulator: 88pm800: Add missing config.of_node setting for regulator register Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2013-07-19  1:16 UTC (permalink / raw)
  To: Mark Brown; +Cc: Yi Zhang, Chao Xie, Liam Girdwood, linux-kernel

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/regulator/88pm800.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/88pm800.c b/drivers/regulator/88pm800.c
index a7d962f..fc0c352 100644
--- a/drivers/regulator/88pm800.c
+++ b/drivers/regulator/88pm800.c
@@ -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);
-- 
1.8.1.2




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] regulator: 88pm800: Depend on MFD_88PM800 rather than MFD_88PM800=y
  2013-07-19  1:16 [PATCH 1/2] regulator: 88pm800: Add missing config.of_node setting for regulator register Axel Lin
@ 2013-07-19  1:17 ` Axel Lin
  2013-07-19 17:24 ` [PATCH 1/2] regulator: 88pm800: Add missing config.of_node setting for regulator register Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Axel Lin @ 2013-07-19  1:17 UTC (permalink / raw)
  To: Mark Brown; +Cc: Yi Zhang, Chao Xie, Liam Girdwood, linux-kernel

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 <axel.lin@ingics.com>
---
 drivers/regulator/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index 65b7d5b..b05fa90 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -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,
-- 
1.8.1.2




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] regulator: 88pm800: Add missing config.of_node setting for regulator register
  2013-07-19  1:16 [PATCH 1/2] regulator: 88pm800: Add missing config.of_node setting for regulator register Axel Lin
  2013-07-19  1:17 ` [PATCH 2/2] regulator: 88pm800: Depend on MFD_88PM800 rather than MFD_88PM800=y Axel Lin
@ 2013-07-19 17:24 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2013-07-19 17:24 UTC (permalink / raw)
  To: Axel Lin; +Cc: Yi Zhang, Chao Xie, Liam Girdwood, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

On Fri, Jul 19, 2013 at 09:16:55AM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Applied both, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-19 17:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-19  1:16 [PATCH 1/2] regulator: 88pm800: Add missing config.of_node setting for regulator register Axel Lin
2013-07-19  1:17 ` [PATCH 2/2] regulator: 88pm800: Depend on MFD_88PM800 rather than MFD_88PM800=y Axel Lin
2013-07-19 17:24 ` [PATCH 1/2] regulator: 88pm800: Add missing config.of_node setting for regulator register Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox