From: Axel Lin Date: Fri, 3 Jun 2011 01:12:15 +0000 (+0800) Subject: mtd: denali: remove calling mtd_device_unregister() after nand_release() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b07948251f563379885ac92412fb3885c976e423;p=linux-beck.git mtd: denali: remove calling mtd_device_unregister() after nand_release() The implementation of nand_release() already call mtd_device_unregister(), no need to call it again. Signed-off-by: Axel Lin Acked-by: Jamie Iles Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index ee3014505af2..eebdfb5148e6 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -1677,7 +1677,6 @@ static void denali_pci_remove(struct pci_dev *dev) struct denali_nand_info *denali = pci_get_drvdata(dev); nand_release(&denali->mtd); - mtd_device_unregister(&denali->mtd); denali_irq_cleanup(dev->irq, denali);