diff options
-rw-r--r-- | drivers/mtd/nand/socrates_nand.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c index 09dde7d27178..f44c7c884a20 100644 --- a/drivers/mtd/nand/socrates_nand.c +++ b/drivers/mtd/nand/socrates_nand.c | |||
@@ -211,7 +211,6 @@ static int socrates_nand_probe(struct platform_device *ofdev) | |||
211 | nand_release(mtd); | 211 | nand_release(mtd); |
212 | 212 | ||
213 | out: | 213 | out: |
214 | dev_set_drvdata(&ofdev->dev, NULL); | ||
215 | iounmap(host->io_base); | 214 | iounmap(host->io_base); |
216 | kfree(host); | 215 | kfree(host); |
217 | return res; | 216 | return res; |
@@ -227,7 +226,6 @@ static int socrates_nand_remove(struct platform_device *ofdev) | |||
227 | 226 | ||
228 | nand_release(mtd); | 227 | nand_release(mtd); |
229 | 228 | ||
230 | dev_set_drvdata(&ofdev->dev, NULL); | ||
231 | iounmap(host->io_base); | 229 | iounmap(host->io_base); |
232 | kfree(host); | 230 | kfree(host); |
233 | 231 | ||