mtd: onenand: remove redundant mtd_device_unregister before onenand_release
authorAxel Lin <axel.lin@gmail.com>
Fri, 17 Jun 2011 11:06:33 +0000 (19:06 +0800)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:10 +0000 (15:02 +0300)
commite638275e18a929103bb087acb94d2b67eb0818e0
tree09b6c839344154b79edc181f402c2258a919021a
parentd117040be074fd1c019b751515f79efe99cd7d76
mtd: onenand: remove redundant mtd_device_unregister before onenand_release

onenand_release() will call mtd_device_unregister(), thus remove the redundant
mtd_device_unregister() call before onenand_release().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
drivers/mtd/onenand/generic.c