mtd: sh_flctl: use devm_* managed allocators
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 27 Nov 2013 10:27:44 +0000 (11:27 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 3 Jan 2014 19:22:23 +0000 (11:22 -0800)
commitf7b5e849d516e3955715689678602ac55b952e2a
treef150b0ac98b12918d897f485a20f43ab1e2f7841
parent82ae816e160c6d349784daa03800006090d38fd0
mtd: sh_flctl: use devm_* managed allocators

This simplifies error and cleanup code paths.

Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/sh_flctl.c