kernel_optimize_test/drivers/mtd/nand
Ezequiel Garcia 15b540c71c mtd: nand: pxa3xx: Use info->use_dma to release DMA resources
In commit:

  commit 62e8b85178
  Author: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
  Date:   Fri Oct 4 15:30:38 2013 -0300

  mtd: nand: pxa3xx: Allocate data buffer on detected flash size

the way the buffer is allocated was changed: the first READ_ID is issued
with a small kmalloc'ed buffer. Only once the flash page size is detected
the DMA buffers are allocated, and info->use_dma is set.

Currently, if the device detection fails, the driver checks the 'use_dma'
module parameter and tries to release unallocated DMA resources.

Fix this by checking the proper indicator of the DMA allocation, which
is 'info->use_dma'.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2013-12-12 15:02:04 -08:00
..
bcm47xxnflash mtd: bcm47xxnflash: Use devm_kzalloc 2013-11-06 23:32:56 -08:00
gpmi-nand mtd: gpmi: fix the NULL pointer 2013-11-12 10:17:57 -08:00
ams-delta.c
atmel_nand_ecc.h
atmel_nand_nfc.h
atmel_nand.c Merge branch 'next' of git://git.infradead.org/users/vkoul/slave-dma 2013-11-20 13:20:24 -08:00
au1550nd.c
bf5xx_nand.c
cafe_nand.c
cmx270_nand.c
cs553x_nand.c
davinci_nand.c
denali_dt.c
denali_pci.c mtd: denali: remove unnecessary pci_set_drvdata() 2013-11-06 23:32:44 -08:00
denali.c mtd: nand: add a helper to check the SLC/MLC nand chip 2013-10-27 16:27:04 -07:00
denali.h
diskonchip.c mtd: diskonchip: Fix incorrect placement of __initdata 2013-10-27 16:27:07 -07:00
docg4.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2013-11-15 16:47:22 -08:00
fsl_elbc_nand.c MTD merge for 3.13 2013-11-14 12:31:43 +09:00
fsl_ifc_nand.c MTD merge for 3.13 2013-11-14 12:31:43 +09:00
fsl_upm.c drivers: clean-up prom.h implicit includes 2013-10-09 20:04:04 -05:00
fsmc_nand.c dmaengine: remove DMA unmap flags 2013-11-14 11:04:38 -08:00
gpio.c
jz4740_nand.c
Kconfig mtd: nand: omap: remove selection of BCH ecc-scheme via KConfig 2013-11-06 23:33:11 -08:00
lpc32xx_mlc.c mtd: nand: lpc32xx_mlc: Remove redundant of_match_ptr 2013-11-06 23:32:45 -08:00
lpc32xx_slc.c mtd: nand: lpc32xx_slc: Remove redundant of_match_ptr 2013-11-06 23:32:45 -08:00
Makefile
mpc5121_nfc.c drivers: clean-up prom.h implicit includes 2013-10-09 20:04:04 -05:00
mxc_nand.c tree-wide: use reinit_completion instead of INIT_COMPLETION 2013-11-15 09:32:21 +09:00
nand_base.c mtd: nand: use a local variable to simplify the nand_scan_tail 2013-11-07 00:08:56 -08:00
nand_bbt.c mtd: nand_bbt: kill NAND_BBT_SCANALLPAGES 2013-11-06 23:33:14 -08:00
nand_bch.c
nand_ecc.c
nand_ids.c
nandsim.c MTD merge for 3.13 2013-11-14 12:31:43 +09:00
ndfc.c drivers: clean-up prom.h implicit includes 2013-10-09 20:04:04 -05:00
nuc900_nand.c
omap2.c mtd: nand: omap: fix error return code in omap_nand_probe() 2013-11-06 23:33:15 -08:00
orion_nand.c
pasemi_nand.c drivers: clean-up prom.h implicit includes 2013-10-09 20:04:04 -05:00
plat_nand.c
pxa3xx_nand.c mtd: nand: pxa3xx: Use info->use_dma to release DMA resources 2013-12-12 15:02:04 -08:00
r852.c tree-wide: use reinit_completion instead of INIT_COMPLETION 2013-11-15 09:32:21 +09:00
r852.h
s3c2410.c
sh_flctl.c
sharpsl.c
sm_common.c
sm_common.h
socrates_nand.c MTD merge for 3.13 2013-11-14 12:31:43 +09:00
tmio_nand.c mtd: nand: remove deprecated IRQF_DISABLED 2013-11-07 00:08:56 -08:00
txx9ndfmc.c
xway_nand.c