Skip to content

Commit

Permalink
ARM: mach-pcm038: Fix field name of regulator_consumer_supply struct
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Fabio Estevam authored and Sascha Hauer committed Feb 27, 2012
1 parent d65b4e9 commit dcc5abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/mach-pcm038.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
};
Expand Down

0 comments on commit dcc5abf

Please sign in to comment.