Re: [RESEND PATCH 4/4] mmc_spi.c: add support for the regulator framework

2011-04-26 Thread Daniel Ribeiro
Em Qui, 2011-04-21 às 14:49 +0200, Antonio Ospite escreveu: > On Thu, 21 Apr 2011 13:40:41 +0100 > Mark Brown wrote: > > > On Thu, Apr 21, 2011 at 02:27:53PM +0200, Antonio Ospite wrote: > > > > > +#ifdef CONFIG_REGULATOR > > > + host->vcc = regulator_get(mmc_dev(host->mmc), "vmmc"); > > > + > >

Re: [RESEND PATCH 4/4] mmc_spi.c: add support for the regulator framework

2011-04-21 Thread Antonio Ospite
On Thu, 21 Apr 2011 13:40:41 +0100 Mark Brown wrote: > On Thu, Apr 21, 2011 at 02:27:53PM +0200, Antonio Ospite wrote: > > > +#ifdef CONFIG_REGULATOR > > + host->vcc = regulator_get(mmc_dev(host->mmc), "vmmc"); > > + > > + if (IS_ERR(host->vcc)) { > > + host->vcc = NULL; > > + }

Re: [RESEND PATCH 4/4] mmc_spi.c: add support for the regulator framework

2011-04-21 Thread Mark Brown
On Thu, Apr 21, 2011 at 02:27:53PM +0200, Antonio Ospite wrote: > +#ifdef CONFIG_REGULATOR > + host->vcc = regulator_get(mmc_dev(host->mmc), "vmmc"); > + > + if (IS_ERR(host->vcc)) { > + host->vcc = NULL; > + } else { > + host->mmc->ocr_avail = mmc_regulator_get

[RESEND PATCH 4/4] mmc_spi.c: add support for the regulator framework

2011-04-21 Thread Antonio Ospite
Add support for powering up SD cards driven by regulators. This makes the mmc_spi driver work also with the Motorola A910 phone. Signed-off-by: Antonio Ospite --- drivers/mmc/host/mmc_spi.c | 61 +++ 1 files changed, 49 insertions(+), 12 deletions(-) di

[PATCH 4/4] mmc_spi.c: add support for the regulator framework

2011-03-21 Thread Antonio Ospite
Add support for powering up SD cards driven by regulators. This makes the mmc_spi driver work also with the Motorola A910 phone. Signed-off-by: Antonio Ospite --- drivers/mmc/host/mmc_spi.c | 61 +++ 1 files changed, 49 insertions(+), 12 deletions(-) di