diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 61d38697986ecd6d4a0f7af9bd6079563d973a22..7e50ed89e18a75f4551c5a3262f174d65f026670 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -1659,7 +1659,6 @@ static int __init atmel_nand_probe(struct platform_device *pdev) err_scan_ident: err_no_card: atmel_nand_disable(host); - platform_set_drvdata(pdev, NULL); if (host->dma_chan) dma_release_channel(host->dma_chan); err_ecc_ioremap: