diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2020-07-07 23:38:10 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-07-07 23:43:26 +0200 |
commit | 2d14da2c7d77c4dc2ea8bee3cabcdf7d04ab0620 (patch) | |
tree | ede81fd26e4a765e822e9f9cc31b8ff5408faee6 /target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c | |
parent | 673e7944bb51cd5202b2a152326ff7445356715d (diff) | |
download | upstream-2d14da2c7d77c4dc2ea8bee3cabcdf7d04ab0620.tar.gz upstream-2d14da2c7d77c4dc2ea8bee3cabcdf7d04ab0620.tar.bz2 upstream-2d14da2c7d77c4dc2ea8bee3cabcdf7d04ab0620.zip |
ar71xx: Fix mikrotik NAND compile problem
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: 9cad70044f75 ("kernel: fix nand_release() usage.")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 66e04abbb6d0dec8642be5deb2fca4bba470f8ac)
Diffstat (limited to 'target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/mtd/nand/rb91x_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |