mtd: mpc5121_nfc: cleanup clock API use
authorGerhard Sittig <gsi@denx.de>
Mon, 1 Jul 2013 17:01:47 +0000 (19:01 +0200)
committerAnatolij Gustschin <agust@denx.de>
Fri, 23 Aug 2013 21:07:46 +0000 (23:07 +0200)
commit180890c74da72b5249f370edea426fbe076d37be
tree81f62dcb3ead95d9b823dcfcd4ba425bd76b5bc8
parent7282bdb224658b25b445f2b1b3f6cab93cbef961
mtd: mpc5121_nfc: cleanup clock API use

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@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/mtd/nand/mpc5121_nfc.c