]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 20 Jul 2011 04:59:45 +0000 (07:59 +0300)
commit24337807951a4ac4fdc10423fe4d31aa52a42d15
tree172cebad083e38e58c9fe5b1041d79c759ca612b
parent364e779ad982e9bcbadd6b231a1dcee256e60f34
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