On Friday, March 22, 2013 12:51:23 PM Fabio Estevam wrote:
Philipp Zabel wrote:
quoted
if (!tsi->stopped) {
+ error = regulator_enable(tsi->tsiref);
+ if (error < 0) {
+ dev_err(tsi->da9052->dev,
+ "Failed to enable TSIREF regualtor: %d\n",
s/regualtor/regulator
quoted
@@ -274,12 +287,20 @@ static int da9052_ts_probe(struct platform_device
*pdev)>
/* Disable ADC */
da9052_ts_adc_toggle(tsi, false);
+ tsi->tsiref = regulator_get(tsi->da9052->dev, "tsiref");
You could use devm_regulator_get here ...
The rest of the driver does not use managed resources. Mixing styles is not
the best idea.
Thanks.
--
Dmitry