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

2014-04-28 Thread Ivan T. Ivanov
On Fri, 2014-04-25 at 15:53 -0500, Felipe Balbi wrote: > 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 wrote: > > > > > + motg->vddcx = devm_regulator_get(motg->phy.dev, "HSUSB_VDDCX"); > > > + if (IS_ERR(motg->vddc

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

2014-04-25 Thread Felipe Balbi
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 wrote: > > > + motg->vddcx = devm_regulator_get(motg->phy.dev, "HSUSB_VDDCX"); > > + if (IS_ERR(motg->vddcx)) { > > + dev_err(motg->phy.dev, "unable to get h

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

2014-04-24 Thread Fabio Estevam
On Thu, Apr 24, 2014 at 12:48 PM, Ivan T. Ivanov 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); > +

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

2014-04-24 Thread Ivan T. Ivanov
From: "Ivan T. Ivanov" Move memory, regulators, clocks and irq allocation to devm_* variants. Properly check for valid clk handles. Signed-off-by: Ivan T. Ivanov --- drivers/usb/phy/phy-msm-usb.c | 192 -- 1 file changed, 73 insertions(+), 119 deletions(