linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: U300: Don't specify regulator consumers by struct device
@ 2012-02-17  3:23 Axel Lin
  2012-02-17  3:25 ` [PATCH 2/2] ARM: imx/pcm038: " Axel Lin
  2012-02-17 21:38 ` [PATCH 1/2] ARM: U300: " Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Axel Lin @ 2012-02-17  3:23 UTC (permalink / raw)
  To: linux-kernel
  Cc: Linus Walleij, Mark Brown, Liam Girdwood, Russell King, linux-arm-kernel

The dev field is remove from struct regulator_consumer_supply since commit
737f36 "regulator: Remove support for supplies specified by struct device".

This fixes below build error:
  CC      arch/arm/mach-u300/i2c.o
arch/arm/mach-u300/i2c.c:63: error: unknown field 'dev' specified in initializer
arch/arm/mach-u300/i2c.c:95: error: unknown field 'dev' specified in initializer
make[1]: *** [arch/arm/mach-u300/i2c.o] Error 1
make: *** [arch/arm/mach-u300] Error 2

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
This patch is against linux-next 20120217.

 arch/arm/mach-u300/i2c.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-u300/i2c.c b/arch/arm/mach-u300/i2c.c
index 5140dee..a38f802 100644
--- a/arch/arm/mach-u300/i2c.c
+++ b/arch/arm/mach-u300/i2c.c
@@ -60,7 +60,6 @@ static struct regulator_consumer_supply supply_ldo_c[] = {
  */
 static struct regulator_consumer_supply supply_ldo_d[] = {
 	{
-		.dev = NULL,
 		.supply = "vana15", /* Powers the SoC (CPU etc) */
 	},
 };
@@ -92,7 +91,6 @@ static struct regulator_consumer_supply supply_ldo_k[] = {
  */
 static struct regulator_consumer_supply supply_ldo_ext[] = {
 	{
-		.dev = NULL,
 		.supply = "vext", /* External power */
 	},
 };
-- 
1.7.5.4




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

* [PATCH 2/2] ARM: imx/pcm038: Don't specify regulator consumers by struct device
  2012-02-17  3:23 [PATCH 1/2] ARM: U300: Don't specify regulator consumers by struct device Axel Lin
@ 2012-02-17  3:25 ` Axel Lin
  2012-02-17  8:26   ` Sascha Hauer
  2012-02-17 21:38 ` [PATCH 1/2] ARM: U300: " Mark Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Axel Lin @ 2012-02-17  3:25 UTC (permalink / raw)
  To: linux-kernel
  Cc: Uwe Kleine-König, Sascha Hauer, Mark Brown, Liam Girdwood,
	Russell King, linux-arm-kernel

The dev field is remove from struct regulator_consumer_supply since commit
737f36 "regulator: Remove support for supplies specified by struct device".

This fixes below build error:
  CC      arch/arm/mach-imx/mach-pcm038.o
arch/arm/mach-imx/mach-pcm038.c:236: error: unknown field 'dev' specified in initializer
make[1]: *** [arch/arm/mach-imx/mach-pcm038.o] Error 1
make: *** [arch/arm/mach-imx] Error 2

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
This patch is against linux-next 20120217.

 arch/arm/mach-imx/mach-pcm038.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-imx/mach-pcm038.c b/arch/arm/mach-imx/mach-pcm038.c
index 16f126d..bfcc1ea 100644
--- a/arch/arm/mach-imx/mach-pcm038.c
+++ b/arch/arm/mach-imx/mach-pcm038.c
@@ -233,7 +233,6 @@ static struct regulator_init_data sdhc1_data = {
 
 static struct regulator_consumer_supply cam_consumers[] = {
 	{
-		.dev	= NULL,
 		.supply	= "imx_cam_vcc",
 	},
 };
-- 
1.7.5.4




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

* Re: [PATCH 2/2] ARM: imx/pcm038: Don't specify regulator consumers by struct device
  2012-02-17  3:25 ` [PATCH 2/2] ARM: imx/pcm038: " Axel Lin
@ 2012-02-17  8:26   ` Sascha Hauer
  0 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2012-02-17  8:26 UTC (permalink / raw)
  To: Axel Lin
  Cc: linux-kernel, Uwe Kleine-König, Sascha Hauer, Mark Brown,
	Liam Girdwood, Russell King, linux-arm-kernel

On Fri, Feb 17, 2012 at 11:25:21AM +0800, Axel Lin wrote:
> The dev field is remove from struct regulator_consumer_supply since commit
> 737f36 "regulator: Remove support for supplies specified by struct device".
> 
> This fixes below build error:
>   CC      arch/arm/mach-imx/mach-pcm038.o
> arch/arm/mach-imx/mach-pcm038.c:236: error: unknown field 'dev' specified in initializer
> make[1]: *** [arch/arm/mach-imx/mach-pcm038.o] Error 1
> make: *** [arch/arm/mach-imx] Error 2

This is a duplicate of one of Fabios patches, I just sent a pull
request.

Sascha

> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> This patch is against linux-next 20120217.
> 
>  arch/arm/mach-imx/mach-pcm038.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-imx/mach-pcm038.c b/arch/arm/mach-imx/mach-pcm038.c
> index 16f126d..bfcc1ea 100644
> --- a/arch/arm/mach-imx/mach-pcm038.c
> +++ b/arch/arm/mach-imx/mach-pcm038.c
> @@ -233,7 +233,6 @@ static struct regulator_init_data sdhc1_data = {
>  
>  static struct regulator_consumer_supply cam_consumers[] = {
>  	{
> -		.dev	= NULL,
>  		.supply	= "imx_cam_vcc",
>  	},
>  };
> -- 
> 1.7.5.4
> 
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

* Re: [PATCH 1/2] ARM: U300: Don't specify regulator consumers by struct device
  2012-02-17  3:23 [PATCH 1/2] ARM: U300: Don't specify regulator consumers by struct device Axel Lin
  2012-02-17  3:25 ` [PATCH 2/2] ARM: imx/pcm038: " Axel Lin
@ 2012-02-17 21:38 ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2012-02-17 21:38 UTC (permalink / raw)
  To: Axel Lin
  Cc: linux-kernel, Linus Walleij, Liam Girdwood, Russell King,
	linux-arm-kernel

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

On Fri, Feb 17, 2012 at 11:23:49AM +0800, Axel Lin wrote:
> The dev field is remove from struct regulator_consumer_supply since commit
> 737f36 "regulator: Remove support for supplies specified by struct device".

Applied, thanks.

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

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

end of thread, other threads:[~2012-02-17 21:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-17  3:23 [PATCH 1/2] ARM: U300: Don't specify regulator consumers by struct device Axel Lin
2012-02-17  3:25 ` [PATCH 2/2] ARM: imx/pcm038: " Axel Lin
2012-02-17  8:26   ` Sascha Hauer
2012-02-17 21:38 ` [PATCH 1/2] ARM: U300: " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).