mtd: rawnand: gpmi: read buf in nand_read_page_op
commitb05d73d2ceafe0d2f65f8223c2b4259e6aefcbe9
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 21 May 2019 07:06:35 +0000 (21 09:06 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 27 Jun 2019 18:05:27 +0000 (27 20:05 +0200)
tree9d3e734bc637ec69402b8e4de7590fa462e79a3b
parent41e2322b258d6d907a4b721ee39a191f3b1e8a6c
mtd: rawnand: gpmi: read buf in nand_read_page_op

The driver calls nand_read_page_op without a buffer passed and then
calls chip->legacy.read_buf to read the buffer afterwards which is
the same as passing the buffer nand_read_page_op in the first place.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c