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)
{
struct rb91x_nand_info *info = platform_get_drvdata(pdev);
- nand_release(&rbni->chip);
+ nand_release(&info->chip);
return 0;
}