[PATCH v4 04/31] mtd: mpc5121_nfc: cleanup clock API use

Anatolij Gustschin agust at denx.de
Sat Aug 24 07:47:19 EST 2013


On Tue,  6 Aug 2013 22:43:44 +0200
Gerhard Sittig <gsi at denx.de> wrote:

> use devm_clk_get() for automatic put after device close, check for and
> propagate errors when enabling clocks, need to prepare clocks before
> they can get enabled, adjust error code paths to correctly balance
> get/put and prepare/unprepare and enable/disable calls
> 
> Signed-off-by: Gerhard Sittig <gsi at denx.de>
> ---
>  drivers/mtd/nand/mpc5121_nfc.c |   21 ++++++++++++---------
>  1 file changed, 12 insertions(+), 9 deletions(-)

Applied to mpc5xxx tree, thanks!

Anatolij


More information about the Linuxppc-dev mailing list