Skip to content

Commit 880bc52

Browse files
committed
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: 9fdd78f ("mtd: rawnand: xway: Stop using nand_release()") Reported-by: kernel test robot <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 630e8d5 commit 880bc52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/nand/raw/xway_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static int xway_nand_remove(struct platform_device *pdev)
224224
struct nand_chip *chip = &data->chip;
225225
int ret;
226226

227-
ret = mtd_device_unregister(mtd);
227+
ret = mtd_device_unregister(nand_to_mtd(chip));
228228
WARN_ON(ret);
229229
nand_cleanup(chip);
230230

0 commit comments

Comments
 (0)