diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-09-06 18:38:37 -0400 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-10-03 05:12:25 -0400 |
commit | 8395b753d7cad2beb03d374621cc8851f1cb4e01 (patch) | |
tree | 7f54a3d0838bc6fcd0c22c20bfde24dccf037384 /drivers/mtd/nand/raw/tmio_nand.c | |
parent | bf6065c6c08fa3ed7bdf8d28b8062ce8e58c1543 (diff) |
mtd: rawnand: Deprecate ->dev_ready() and ->waitfunc()
Those hooks have been replaced by ->exec_op(). Move them to the
nand_legacy struct.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/tmio_nand.c')
-rw-r--r-- | drivers/mtd/nand/raw/tmio_nand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/raw/tmio_nand.c b/drivers/mtd/nand/raw/tmio_nand.c index 5037359754eb..7e49272ecef6 100644 --- a/drivers/mtd/nand/raw/tmio_nand.c +++ b/drivers/mtd/nand/raw/tmio_nand.c | |||
@@ -404,7 +404,7 @@ static int tmio_probe(struct platform_device *dev) | |||
404 | 404 | ||
405 | /* Set address of hardware control function */ | 405 | /* Set address of hardware control function */ |
406 | nand_chip->legacy.cmd_ctrl = tmio_nand_hwcontrol; | 406 | nand_chip->legacy.cmd_ctrl = tmio_nand_hwcontrol; |
407 | nand_chip->dev_ready = tmio_nand_dev_ready; | 407 | nand_chip->legacy.dev_ready = tmio_nand_dev_ready; |
408 | nand_chip->legacy.read_byte = tmio_nand_read_byte; | 408 | nand_chip->legacy.read_byte = tmio_nand_read_byte; |
409 | nand_chip->legacy.write_buf = tmio_nand_write_buf; | 409 | nand_chip->legacy.write_buf = tmio_nand_write_buf; |
410 | nand_chip->legacy.read_buf = tmio_nand_read_buf; | 410 | nand_chip->legacy.read_buf = tmio_nand_read_buf; |
@@ -432,7 +432,7 @@ static int tmio_probe(struct platform_device *dev) | |||
432 | } | 432 | } |
433 | 433 | ||
434 | tmio->irq = irq; | 434 | tmio->irq = irq; |
435 | nand_chip->waitfunc = tmio_nand_wait; | 435 | nand_chip->legacy.waitfunc = tmio_nand_wait; |
436 | 436 | ||
437 | /* Scan to find existence of the device */ | 437 | /* Scan to find existence of the device */ |
438 | retval = nand_scan(nand_chip, 1); | 438 | retval = nand_scan(nand_chip, 1); |