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
@@ -449,7 +449,7 @@ static int tmio_probe(struct platform_device *dev)
|
||||
if (!retval)
|
||||
return retval;
|
||||
|
||||
nand_release(mtd);
|
||||
nand_release(nand_chip);
|
||||
|
||||
err_irq:
|
||||
tmio_hw_stop(dev, tmio);
|
||||
@@ -460,7 +460,7 @@ static int tmio_remove(struct platform_device *dev)
|
||||
{
|
||||
struct tmio_nand *tmio = platform_get_drvdata(dev);
|
||||
|
||||
nand_release(nand_to_mtd(&tmio->chip));
|
||||
nand_release(&tmio->chip);
|
||||
tmio_hw_stop(dev, tmio);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user