Skip to contentSkip to conversation

ARM: mach-pcm038: Fix field name of regulator_consumer_supply struct

PATCH New Fabio Estevam 1 participant 1 message Feb 14, 2012

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ARM: mach-pcm038: Fix field name of regulator_consumer_supply struct

Building imx_v4_v5_defconfig generates the following error:

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

Fix it by providing the correct "dev_name" field name.

---
 arch/arm/mach-imx/mach-pcm038.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/mach-pcm038.c +1 -1
index 16f126d..2f3debe 100644
@@ -233,7 +233,7 @@ static struct regulator_init_data sdhc1_data = {
 
 static struct regulator_consumer_supply cam_consumers[] = {
 	{
-		.dev	= NULL,
+		.dev_name = NULL,
 		.supply	= "imx_cam_vcc",
 	},
 };
Signature · 1 line
1.7.1