mtd: davinci_nand: Use managed resources
authorMrugesh Katepallewar <mrugesh.mk@ti.com>
Thu, 7 Feb 2013 10:33:15 +0000 (16:03 +0530)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 13 Feb 2013 13:14:02 +0000 (15:14 +0200)
commitef4e0c2145e928b1c165ac88a9aa20038a981488
tree8958e9820873036a93ae68118fdbe02146e21e30
parent221b1bd3d409b14e8764d8f40994b71ae6887d18
mtd: davinci_nand: Use managed resources

davinci_nand driver currently uses normal kzalloc, ioremap and get_clk
routines. This patch replaces these routines with devm_kzalloc,
devm_request_and_ioremap and devm_clk_get resp.

Signed-off-by: Mrugesh Katepallewar <mrugesh.mk@ti.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/davinci_nand.c