ar71xx: Fix mikrotik NAND compile problem
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 7 Jul 2020 21:38:10 +0000 (23:38 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 7 Jul 2020 21:44:48 +0000 (23:44 +0200)
This fixes the following compile error:
drivers/mtd/nand/rb91x_nand.c: In function 'rb91x_nand_remove':
drivers/mtd/nand/rb91x_nand.c:445:16: error: 'rbni' undeclared (first use in this function)
  nand_release(&rbni->chip);

Fixes: 0f07496f520c ("kernel: Update kernel 4.9 to version 4.9.229")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 66e04abbb6d0dec8642be5deb2fca4bba470f8ac)

target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c

index 864768c1f0e7dfe10296d19d476399a11b439030..4322eaccace1c5f0926eb800027160af514c0bb1 100644 (file)
@@ -438,7 +438,7 @@ static int rb91x_nand_remove(struct platform_device *pdev)
 {
        struct rb91x_nand_info *info = platform_get_drvdata(pdev);
 
-       nand_release(&rbni->chip);
+       nand_release(&info->chip);
 
        return 0;
 }