diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2020-07-04 20:36:16 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-07-04 21:04:11 +0200 |
commit | 9cad70044f750e299caf77fdea93ecccc66c6cfc (patch) | |
tree | 3d5dbcf8a0bf0c60a46c47845b4667730595e09f /target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c | |
parent | 820f4654c68af59589773340bea8b2cef11afc60 (diff) | |
download | upstream-9cad70044f750e299caf77fdea93ecccc66c6cfc.tar.gz upstream-9cad70044f750e299caf77fdea93ecccc66c6cfc.tar.bz2 upstream-9cad70044f750e299caf77fdea93ecccc66c6cfc.zip |
kernel: fix nand_release() usage.
nand_release() takes nand_chip since commit 5bcfcbfc4019 ("mtd: rawnand:
Pass a nand_chip object to nand_release()")
Fixes: f4985a22ca1b ("kernel: Update kernel 4.14 to version 4.14.187")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c b/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c index 74f7f2913e..a578c54ad3 100644 --- a/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c +++ b/target/linux/ar71xx/files/drivers/mtd/nand/rb750_nand.c @@ -393,7 +393,7 @@ static int rb750_nand_probe(struct platform_device *pdev) return 0; err_release_nand: - nand_release(mtd); + nand_release(&info->chip); err_set_drvdata: platform_set_drvdata(pdev, NULL); err_free_info: @@ -405,7 +405,7 @@ static int rb750_nand_remove(struct platform_device *pdev) { struct rb750_nand_info *info = platform_get_drvdata(pdev); - nand_release(rbinfo_to_mtd(info)); + nand_release(&info->chip); platform_set_drvdata(pdev, NULL); kfree(info); |