]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: xway: Fix build issue
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 26 Jun 2020 06:55:11 +0000 (08:55 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 7 Jul 2020 19:04:38 +0000 (21:04 +0200)
commita6046e30dc99c10c17234a2e37a9a049ee36a0ed
tree3a8ae05dbf0b3e07b1db75f733fdcd0671f29c9d
parentee895b75c6a705ec831ce74839c6f98d9770518f
mtd: rawnand: xway: Fix build issue

This MIPS driver does not support COMPILE_TEST yet and failed to build
under my radar.

Replace 'mtd' chich is not defined in the scope of xway_nand_remove()
by nand_to_mtd(chip). The mistake has been added in the long series
dropping nand_release().

Tested with a 7.3.0 MIPS GCC toolchain built with Buildroot.

Fixes: 4e0a5f3544d0 ("mtd: rawnand: xway: Stop using nand_release()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200626065511.16424-1-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/xway_nand.c