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/ramips/patches-4.14/0039-mtd-add-mt7621-nand-support.patch | |
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/ramips/patches-4.14/0039-mtd-add-mt7621-nand-support.patch')
-rw-r--r-- | target/linux/ramips/patches-4.14/0039-mtd-add-mt7621-nand-support.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/patches-4.14/0039-mtd-add-mt7621-nand-support.patch b/target/linux/ramips/patches-4.14/0039-mtd-add-mt7621-nand-support.patch index 03b2b36db9..66980a8472 100644 --- a/target/linux/ramips/patches-4.14/0039-mtd-add-mt7621-nand-support.patch +++ b/target/linux/ramips/patches-4.14/0039-mtd-add-mt7621-nand-support.patch @@ -3590,7 +3590,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org> + +out: + MSG(INIT, "[NFI] mtk_nand_probe fail, err = %d!\n", err); -+ nand_release(mtd); ++ nand_release(nand_chip); + platform_set_drvdata(pdev, NULL); + kfree(host); + nand_disable_clock(); @@ -3604,7 +3604,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org> + struct mtd_info *mtd = host->mtd; + struct nand_chip *nand_chip = &host->nand_chip; + -+ nand_release(mtd); ++ nand_release(nand_chip); + kfree(host); + nand_disable_clock(); + |