Mon, 24 Mar 2014 10:29:45 +0100 от Ulf Hansson <ulf.hans...@linaro.org>:
> On 22 March 2014 09:52, Alexander Shiyan <shc_w...@mail.ru> wrote:
> > Replace existing resource handling in the driver with managed
> > device resource, this ensures more consistent error values and
> > simplifies error paths.
> >
> > Signed-off-by: Alexander Shiyan <shc_w...@mail.ru>
> > ---
...
> > +static void mxcmci_init_ocr(struct mxcmci_host *host)
> >  {
> > -       host->vcc = regulator_get(mmc_dev(host->mmc), "vmmc");
> > -
> > +       host->vcc = devm_regulator_get(mmc_dev(host->mmc), "vmmc");
> 
> A semi-related comment to this patch. May I suggest you post a follow
> up patch on top of this one, which convert to use the
> mmc_regulator_get_supply() API.

It's an interesting idea. I'll try to make it a bit later.

---

Reply via email to