]> Git Repo - linux.git/commitdiff
mtd: rawnand: xway: Fix build issue
authorMiquel Raynal <[email protected]>
Fri, 26 Jun 2020 06:55:11 +0000 (08:55 +0200)
committerMiquel Raynal <[email protected]>
Tue, 7 Jul 2020 19:04:38 +0000 (21:04 +0200)
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: 9fdd78f7bcda ("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]
drivers/mtd/nand/raw/xway_nand.c

index 94bfba9943265b378e6f16b0988222205914fedd..29255476afdb6054c3e22dbb4270c1435647bc0c 100644 (file)
@@ -224,7 +224,7 @@ static int xway_nand_remove(struct platform_device *pdev)
        struct nand_chip *chip = &data->chip;
        int ret;
 
-       ret = mtd_device_unregister(mtd);
+       ret = mtd_device_unregister(nand_to_mtd(chip));
        WARN_ON(ret);
        nand_cleanup(chip);
 
This page took 0.058383 seconds and 4 git commands to generate.