Re: [PATCH 1/2] regulator: fixed: use devm_* for gpio request

From: Laxman Dewangan
Date: Tue Jul 03 2012 - 04:52:53 EST


On Monday 02 July 2012 10:59 PM, Mark Brown wrote:
* PGP Signed by an unknown key

On Mon, Jul 02, 2012 at 03:37:24PM +0530, Laxman Dewangan wrote:
Use devm_* version of gpio APIs gpio_request_one() for
requesting gpios.
This avoid extra code for freeing gpios.
This can't be applied yet since the export for the devm version hasn't
been applied so it won't build and also conflicts with the factoring out
of the GPIO code to the core.

Oops, then lets ignore the 1/2 for now. If require, we will revisit later.

But what about 2/2? Does it look good? I can send that as separate patch if it is fine.


--
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/