mtd: denali: remove calling mtd_device_unregister() after nand_release()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/mtd/nand/denali.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/mtd/nand/denali.c +0 -1
@@ -1676,7 +1676,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);
Signature · 1 line
1.7.4.1
Quoted 2 lines · Axel Lin
The implementation of
nand_release()already callmtd_device_unregister(), no need to call it again.
Good catch!
Quoted 1 line
Signed-off-by Axel Lin <[email protected]>
Acked-by Jamie Iles <[email protected]>
Artem Bityutskiy
AppliedQuoted 4 lines · Axel Lin
The implementation of
nand_release()already callmtd_device_unregister(), no need to call it again.Signed-off-by Axel Lin <[email protected]>
Pushed to l2-mtd-2.6.git, thanks.
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)