[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAKDJKT6TMHEboET4=iVEM2qbi6Bz7kCyyjutLfym2pwrwtEGVg@mail.gmail.com>
Date: Wed, 4 Dec 2013 13:09:20 +0530
From: Manish Badarkhe <badarkhe.manish@...il.com>
To: Keerthy <j-keerthy@...com>
Cc: Rob Herring <rob.herring@...xeda.com>, pawel.moll@....com,
Mark Rutland <mark.rutland@....com>,
Stephen Warren <swarren@...dotorg.org>,
ijc+devicetree@...lion.org.uk, Rob Landley <rob@...dley.net>,
sameo@...ux.intel.com, lee.jones@...aro.org,
grant.likely@...aro.org, Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-omap@...r.kernel.org
Subject: Re: [PATCH 3/4] Regulators: TPS65218: Add Regulator driver for
TPS65218 PMIC
Hi Keerthy,
> + rdev = regulator_register(®ulators[id], &config);
Can you make use of "devm_regulator_register" instead?
> + if (IS_ERR(rdev)) {
> + dev_err(tps->dev, "failed to register %s regulator\n",
> + pdev->name);
> + return PTR_ERR(rdev);
> + }
> +
> + /* Save regulator */
> + tps->rdev[id] = rdev;
> +
> + return 0;
> +}
Best Regards
Manish Badarkhe
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists