Skip to content

Commit

Permalink
mtd: davinci_nand: remove redundant mtd_device_unregister
Browse files Browse the repository at this point in the history
mtd_device_unregister is done in nand_release(),
thus no need to call it in nand_davinci_remove().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Axel Lin authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 0870066 commit 3b36013
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/mtd/nand/davinci_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,6 @@ static int __init nand_davinci_probe(struct platform_device *pdev)
static int __exit nand_davinci_remove(struct platform_device *pdev)
{
struct davinci_nand_info *info = platform_get_drvdata(pdev);
int status;

status = mtd_device_unregister(&info->mtd);

spin_lock_irq(&davinci_nand_lock);
if (info->chip.ecc.mode == NAND_ECC_HW_SYNDROME)
Expand Down

0 comments on commit 3b36013

Please sign in to comment.