Re: [PATCH v7 05/20] usb: phy: msm: Migrate to Managed Device Resource allocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 24, 2014 at 01:49:38PM -0300, Fabio Estevam wrote:
> On Thu, Apr 24, 2014 at 12:48 PM, Ivan T. Ivanov <iivanov@xxxxxxxxxx> wrote:
> 
> > +       motg->vddcx = devm_regulator_get(motg->phy.dev, "HSUSB_VDDCX");
> > +       if (IS_ERR(motg->vddcx)) {
> > +               dev_err(motg->phy.dev, "unable to get hsusb vddcx\n");
> > +               return PTR_ERR(motg->vddcx);
> > +       }
> > +
> > +       motg->v3p3 = devm_regulator_get(motg->phy.dev, "HSUSB_3p3");
> > +       if (IS_ERR(motg->v3p3)) {
> > +               dev_err(motg->phy.dev, "unable to get hsusb 3p3\n");
> > +               return PTR_ERR(motg->v3p3);
> > +       }
> > +
> > +       motg->v1p8 = devm_regulator_get(motg->phy.dev, "HSUSB_1p8");
> > +       if (IS_ERR(motg->v1p8)) {
> > +               dev_err(motg->phy.dev, "unable to get hsusb 1p8\n");
> > +               return PTR_ERR(motg->v1p8);
> > +       }
> 
> It seems that calling devm_regulator_bulk_get() here would simplify
> the code here.

any comments here ?? Should I expect a new version ?

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux