mtd: nandsim: fix double free
authorshengyong <shengyong1@huawei.com>
Thu, 25 Jun 2015 02:23:14 +0000 (02:23 +0000)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 6 Jul 2015 22:20:10 +0000 (15:20 -0700)
Do not call free_device() in init_nandsim, the caller - ns_init_module -
will take care of that if something goes wrong.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nandsim.c

Simple merge