public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] regulator: Fix build error for ab8500
@ 2012-04-10  5:47 Axel Lin
  2012-04-10  5:49 ` [PATCH 2/3] regulator: Fix a typo in da903x.c Axel Lin
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Axel Lin @ 2012-04-10  5:47 UTC (permalink / raw)
  To: linux-kernel
  Cc: Linus Walleij, Bengt JONSSON, Sundar R Iyer, Mark Brown,
	Liam Girdwood, Stephen Rothwell

Fix below build errors which is introduced by commit c172708
"regulator: core: Use a struct to pass in regulator runtime configuration".

  CC      drivers/regulator/ab8500.o
drivers/regulator/ab8500.c: In function 'ab8500_regulator_probe':
drivers/regulator/ab8500.c:783: error: invalid type argument of '->' (have 'struct regulator_config')
drivers/regulator/ab8500.c:784: error: invalid type argument of '->' (have 'struct regulator_config')
drivers/regulator/ab8500.c:785: error: invalid type argument of '->' (have 'struct regulator_config')
make[2]: *** [drivers/regulator/ab8500.o] Error 1
make[1]: *** [drivers/regulator] Error 2
make: *** [drivers] Error 2

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/regulator/ab8500.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c
index 93feada..d156390 100644
--- a/drivers/regulator/ab8500.c
+++ b/drivers/regulator/ab8500.c
@@ -780,9 +780,9 @@ static __devinit int ab8500_regulator_probe(struct platform_device *pdev)
 		info = &ab8500_regulator_info[i];
 		info->dev = &pdev->dev;
 
-		config->dev = &pdev->dev;
-		config->init_data = &pdata->regulator[i];
-		config->driver_data = info;
+		config.dev = &pdev->dev;
+		config.init_data = &pdata->regulator[i];
+		config.driver_data = info;
 
 		/* fix for hardware before ab8500v2.0 */
 		if (abx500_get_chip_id(info->dev) < 0x20) {
-- 
1.7.5.4




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

end of thread, other threads:[~2012-04-10  8:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-10  5:47 [PATCH 1/3] regulator: Fix build error for ab8500 Axel Lin
2012-04-10  5:49 ` [PATCH 2/3] regulator: Fix a typo in da903x.c Axel Lin
2012-04-10  8:41   ` Mark Brown
2012-04-10  5:51 ` [PATCH 3/3] regulator: Fix build error for mc13783 and mc13892 Axel Lin
2012-04-10  8:06 ` [PATCH 1/3] regulator: Fix build error for ab8500 Linus Walleij
2012-04-10  8:40 ` Mark Brown

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