linux_dsm_epyc7002/drivers/mtd/nand/raw
Miquel Raynal 8a82bbcade mtd: rawnand: mtk: Fix the probe error path
nand_release() is supposed be called after MTD device registration.
Here, only nand_scan() happened, so use nand_cleanup() instead.

There is no real Fixes tag applying here as the use of nand_release()
in this driver predates the introduction of nand_cleanup() in
commit d44154f969 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
which makes this change possible. However, pointing this commit as the
culprit for backporting purposes makes sense even if this commit is not
introducing any bug.

Fixes: d44154f969 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-28-miquel.raynal@bootlin.com
2020-05-31 10:53:34 +02:00
..
atmel mtd: rawnand: Rename a NAND chip option 2020-05-11 09:51:42 +02:00
bcm47xxnflash mtd: rawnand: bcm47xx: Stop using nand_release() 2020-05-31 10:53:33 +02:00
brcmnand mtd: rawnand: brcmnand: Stop using nand_release() 2020-05-31 10:53:33 +02:00
gpmi-nand mtd: rawnand: gpmi: Stop using nand_release() 2020-05-31 10:53:34 +02:00
ingenic mtd: rawnand: ingenic: Stop using nand_release() 2020-05-31 10:53:34 +02:00
ams-delta.c mtd: rawnand: ams-delta: Stop using nand_release() 2020-05-26 21:37:51 +02:00
arasan-nand-controller.c mtd: rawnand: arasan: Support the hardware BCH ECC engine 2020-05-26 21:37:25 +02:00
au1550nd.c mtd: rawnand: au1550nd: Stop using nand_release() 2020-05-31 10:53:26 +02:00
cadence-nand-controller.c mtd: rawnand: cadence: Stop using nand_release() 2020-05-31 10:53:33 +02:00
cafe_nand.c mtd: rawnand: cafe: Stop using nand_release() 2020-05-31 10:53:33 +02:00
cs553x_nand.c mtd: rawnand: cs553x: Stop using nand_release() 2020-05-31 10:53:33 +02:00
davinci_nand.c mtd: rawnand: davinci: Stop using nand_release() 2020-05-31 10:53:33 +02:00
denali_dt.c mtd: rawnand: denali_dt: add reset controlling 2020-01-21 20:00:33 +01:00
denali_pci.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
denali.c mtd: rawnand: denali: Stop using nand_release() 2020-05-31 10:53:33 +02:00
denali.h mtd: rawnand: Replace zero-length array with flexible-array member 2020-03-11 16:17:54 +01:00
diskonchip.c mtd: rawnand: diskonchip: Stop using nand_release() 2020-05-31 10:53:33 +02:00
fsl_elbc_nand.c mtd: rawnand: fsl_elbc: Stop using nand_release() 2020-05-31 10:53:33 +02:00
fsl_ifc_nand.c mtd: rawnand: fsl_ifc: Stop using nand_release() 2020-05-31 10:53:33 +02:00
fsl_upm.c mtd: rawnand: fsl_upm: Stop using nand_release() 2020-05-31 10:53:33 +02:00
fsmc_nand.c mtd: rawnand: fsmc: Stop using nand_release() 2020-05-31 10:53:34 +02:00
gpio.c mtd: rawnand: gpio: Stop using nand_release() 2020-05-31 10:53:34 +02:00
hisi504_nand.c mtd: rawnand: hisi504: Stop using nand_release() 2020-05-31 10:53:34 +02:00
internals.h mtd: rawnand: Add a helper to check supported operations 2020-05-11 09:51:42 +02:00
Kconfig mtd: rawnand: arasan: Support the hardware BCH ECC engine 2020-05-26 21:37:25 +02:00
lpc32xx_mlc.c mtd: rawnand: lpc32xx_mlc: Stop using nand_release() 2020-05-31 10:53:34 +02:00
lpc32xx_slc.c mtd: rawnand: lpc32xx_slc: Stop using nand_release() 2020-05-31 10:53:34 +02:00
Makefile mtd: rawnand: arasan: Add new Arasan NAND controller 2020-05-24 22:34:55 +02:00
marvell_nand.c mtd: rawnand: marvell: Stop using nand_release() 2020-05-31 10:53:34 +02:00
meson_nand.c mtd: rawnand: Rename a NAND chip option 2020-05-11 09:51:42 +02:00
mpc5121_nfc.c mtd: rawnand: mpc5121: Stop using nand_release() 2020-05-31 10:53:34 +02:00
mtk_ecc.c mtd: Remove dev_err() usage after platform_get_irq() 2019-10-08 19:01:49 +02:00
mtk_ecc.h mtd: rawnand: mtk: Re-license MTK NAND driver as Dual MIT/GPL 2019-06-27 20:07:46 +02:00
mtk_nand.c mtd: rawnand: mtk: Fix the probe error path 2020-05-31 10:53:34 +02:00
mxc_nand.c mtd: rawnand: Deprecate the dummy_controller field 2018-12-07 10:58:11 +01:00
mxic_nand.c mtd: rawnand: Take check_only into account 2020-05-10 21:16:01 +02:00
nand_amd.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
nand_base.c mtd: rawnand: Add nand_extract_bits() 2020-05-24 22:34:55 +02:00
nand_bbt.c mtd: rawnand: Fix a memory leak bug 2019-08-24 13:13:41 +02:00
nand_bch.c lib/bch: Allow easy bit swapping 2020-05-24 20:48:11 +02:00
nand_ecc.c docs: mtd: move it to the driver-api book 2019-07-15 09:20:28 -03:00
nand_esmt.c mtd: rawnand: ESMT: Also use the last page for bad block markers 2019-04-18 08:54:08 +02:00
nand_hynix.c mtd: rawnand: Replace zero-length array with flexible-array member 2020-03-11 16:17:54 +01:00
nand_ids.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
nand_jedec.c mtd: rawnand: jedec: Adapt the parameter page read to constraint controllers 2020-05-11 09:51:43 +02:00
nand_legacy.c mtd: rawnand: Give the possibility to verify a read operation is supported 2020-05-11 09:51:42 +02:00
nand_macronix.c mtd: rawnand: macronix: Add support for deep power down mode 2020-03-24 22:51:01 +01:00
nand_micron.c mtd: rawnand: micron: Adapt the PAGE READ flow to constraint controllers 2020-05-24 20:48:11 +02:00
nand_onfi.c mtd: rawnand: onfi: Adapt the parameter page read to constraint controllers 2020-05-11 09:51:43 +02:00
nand_samsung.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
nand_timings.c mtd: rawnand: timings: Fix default tR_max and tCCS_min timings 2020-05-11 09:51:40 +02:00
nand_toshiba.c mtd: rawnand: toshiba: Set the pairing scheme for TC58TEG5DCLTA00 2020-05-11 09:51:41 +02:00
nandsim.c mtd: rawnand: Take check_only into account 2020-05-10 21:16:01 +02:00
ndfc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
omap2.c mtd: Remove dev_err() usage after platform_get_irq() 2019-10-08 19:01:49 +02:00
omap_elm.c mtd: Convert fallthrough comments into statements 2020-03-30 10:14:54 +02:00
orion_nand.c mtd: rawnand: Deprecate ->chip_delay 2018-10-03 11:12:25 +02:00
oxnas_nand.c mtd: rawnand: oxnas: Add of_node_put() 2019-07-25 14:21:44 +02:00
pasemi_nand.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333 2019-06-05 17:37:06 +02:00
plat_nand.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
qcom_nandc.c mtd: rawnand: Rename a NAND chip option 2020-05-11 09:51:42 +02:00
r852.c mtd: rawnand: r852: Use dev_get_drvdata 2019-08-07 18:15:38 +02:00
r852.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
s3c2410.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
sh_flctl.c mtd: Remove dev_err() usage after platform_get_irq() 2019-10-08 19:01:49 +02:00
sharpsl.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sm_common.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sm_common.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
socrates_nand.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
stm32_fmc2_nand.c mtd: rawnand: stm32_fmc2: use FIELD_PREP/FIELD_GET macros 2020-05-24 20:29:26 +02:00
sunxi_nand.c mtd: rawnand: Rename a NAND chip option 2020-05-11 09:51:42 +02:00
tango_nand.c mtd: rawnand: Rename a NAND chip option 2020-05-11 09:51:42 +02:00
tegra_nand.c mtd: rawnand: Rename a NAND chip option 2020-05-11 09:51:42 +02:00
tmio_nand.c mtd: rawnand: Stop using chip->state in drivers 2019-02-05 15:39:40 +01:00
txx9ndfmc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
vf610_nfc.c mtd: rawnand: Take check_only into account 2020-05-10 21:16:01 +02:00
xway_nand.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00