Re: [PATCH 3/4] Regulators: TPS65218: Add Regulator driver forTPS65218 PMIC

From: Manish Badarkhe
Date: Wed Dec 04 2013 - 02:39:27 EST


Hi Keerthy,

> + rdev = regulator_register(&regulators[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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/