mtd: rawnand: Pass a nand_chip object to nand_release()
Let's make the raw NAND API consistent by patching all helpers to take a nand_chip object instead of an mtd_info one. Now is nand_release()'s turn. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:

committed by
Miquel Raynal

parent
00ad378f30
commit
59ac276f22
@@ -181,7 +181,7 @@ static int socrates_nand_probe(struct platform_device *ofdev)
|
||||
if (!res)
|
||||
return res;
|
||||
|
||||
nand_release(mtd);
|
||||
nand_release(nand_chip);
|
||||
|
||||
out:
|
||||
iounmap(host->io_base);
|
||||
@@ -194,9 +194,8 @@ out:
|
||||
static int socrates_nand_remove(struct platform_device *ofdev)
|
||||
{
|
||||
struct socrates_nand_host *host = dev_get_drvdata(&ofdev->dev);
|
||||
struct mtd_info *mtd = nand_to_mtd(&host->nand_chip);
|
||||
|
||||
nand_release(mtd);
|
||||
nand_release(&host->nand_chip);
|
||||
|
||||
iounmap(host->io_base);
|
||||
|
||||
|
Reference in New Issue
Block a user