Hi, On Mon, Jun 06, 2011 at 02:46:01AM -0400, [email protected] wrote: > From: Oleg Drokin <[email protected]> > > CC: Mark Brown <[email protected]> > CC: Mike Rapoport <[email protected]> > CC: Nishant Kamat <[email protected]> > CC: Steve Sakoman <[email protected]> > CC: Felipe Balbi <[email protected]> > CC: Santosh Shilimkar <[email protected]> > Signed-off-by: Oleg Drokin <[email protected]> > --- > arch/arm/mach-omap2/board-4430sdp.c | 16 +++++----------- > arch/arm/mach-omap2/board-cm-t35.c | 10 ++++------ > arch/arm/mach-omap2/board-ldp.c | 5 ++--- > arch/arm/mach-omap2/board-omap3beagle.c | 10 ++++------ > arch/arm/mach-omap2/board-omap3evm.c | 10 ++++------ > arch/arm/mach-omap2/board-omap3logic.c | 5 ++--- > arch/arm/mach-omap2/board-omap3stalker.c | 10 ++++------ > arch/arm/mach-omap2/board-omap3touchbook.c | 10 ++++------ > arch/arm/mach-omap2/board-omap4panda.c | 16 +++++----------- > arch/arm/mach-omap2/board-overo.c | 5 ++--- > arch/arm/mach-omap2/board-zoom-peripherals.c | 21 ++++++++------------- > 11 files changed, 44 insertions(+), 74 deletions(-) > > diff --git a/arch/arm/mach-omap2/board-4430sdp.c > b/arch/arm/mach-omap2/board-4430sdp.c > index 63de2d3..914885a 100644 > --- a/arch/arm/mach-omap2/board-4430sdp.c > +++ b/arch/arm/mach-omap2/board-4430sdp.c > @@ -332,17 +332,11 @@ static struct omap2_hsmmc_info mmc[] = { > {} /* Terminator */ > }; > > -static struct regulator_consumer_supply sdp4430_vaux_supply[] = { > - { > - .supply = "vmmc", > - .dev_name = "omap_hsmmc.1", > - }, > -}; > +static struct regulator_consumer_supply sdp4430_vaux_supply = > + REGULATOR_SUPPLY("vmmc", "omap_hsmmc.1");
this should be an array, as it was before.
> +
> static struct regulator_consumer_supply sdp4430_vmmc_supply[] = {
> - {
> - .supply = "vmmc",
> - .dev_name = "omap_hsmmc.0",
> - },
> + REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0"),
> };
>
> static int omap4_twl6030_hsmmc_late_init(struct device *dev)
> @@ -400,7 +394,7 @@ static struct regulator_init_data sdp4430_vaux1 = {
> | REGULATOR_CHANGE_STATUS,
> },
> .num_consumer_supplies = 1,
and this should use ARRAY_SIZE(),
> - .consumer_supplies = sdp4430_vaux_supply,
> + .consumer_supplies = &sdp4430_vaux_supply,
> };
>
> static struct regulator_init_data sdp4430_vaux2 = {
> diff --git a/arch/arm/mach-omap2/board-cm-t35.c
> b/arch/arm/mach-omap2/board-cm-t35.c
> index 77456de..33855e4 100644
> --- a/arch/arm/mach-omap2/board-cm-t35.c
> +++ b/arch/arm/mach-omap2/board-cm-t35.c
> @@ -337,13 +337,11 @@ static void __init cm_t35_init_display(void)
> }
> }
>
> -static struct regulator_consumer_supply cm_t35_vmmc1_supply = {
> - .supply = "vmmc",
> -};
> +static struct regulator_consumer_supply cm_t35_vmmc1_supply =
> + REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0");
this should also be array. It should read as:
static struct regulator_consumer_supply cm_t35_vmmc1_supply[] =
REGULATOR_SUPPLY("vmmc", "omap_hsmmc.0",
};
ditto to all others.
--
balbi
signature.asc
Description: Digital signature
