mtd: nand: pxa3xx_nand: use nand_to_mtd()
authorOfer Heifetz <oferh@marvell.com>
Wed, 29 Aug 2018 08:56:01 +0000 (11:56 +0300)
committerStefan Roese <sr@denx.de>
Wed, 19 Sep 2018 07:00:39 +0000 (09:00 +0200)
commit8cdcf672c59b778f2a68a4f5d6c5f4d584f7ef54
tree1dcbedc3d05ee7424bd100771cff31fcd6f9a852
parent144532242ed3588bf63acccc6a46399b87861c03
mtd: nand: pxa3xx_nand: use nand_to_mtd()

Don't store struct mtd_info in struct pxa3xx_nand_host. Instead use the
one that is already part of struct nand_chip. This brings us in line
with current U-boot and Linux conventions.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Ofer Heifetz <oferh@marvell.com>
Reviewed-by: Igal Liberman <igall@marvell.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/nand/pxa3xx_nand.c