[openwrt/openwrt] ar71xx: Fix mikrotik NAND compile problem

LEDE Commits lede-commits at lists.infradead.org
Tue Jul 7 17:41:22 EDT 2020


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/66e04abbb6d0dec8642be5deb2fca4bba470f8ac

commit 66e04abbb6d0dec8642be5deb2fca4bba470f8ac
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Tue Jul 7 23:38:10 2020 +0200

    ar71xx: Fix mikrotik NAND compile problem
    
    This Fixes the folowing 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: ce958dd88a7e ("kernel: Update kernel 4.14 to version 4.14.187")
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c b/target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c
index f5a31bf58f..94e709b7e4 100644
--- a/target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c
+++ b/target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c
@@ -442,7 +442,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;
 }



More information about the lede-commits mailing list