Star64_linux/include/linux/mtd
Boris BREZILLON 8142b47ef3 mtd: nand: remove unused and buggy get_platform_nandchip() helper function
Nobody uses the get_platform_nandchip() helper function which is supposed
to return a pointer to a platform_nand_chip struct from an mtd_info
pointer.
Moreover, this function is buggy since the introduction of the plat_nand
layer (chip->priv is now storing a pointer to an intermediate
plat_nand_data structure allocated in plat_nand_probe(), and we have no
way to retrieve a pointer to the provided platform_nand_chip struct from
this plat_nand_data pointer).

While we are at it, remove the useless (and buggy, since it's pointing to
something stored on the stack) data->chip.priv assignment.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Fixes: 711fdf627c ("[MTD] [NAND] platform NAND driver: add driver")
Cc: Vitaly Wool <vitalywool@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2015-12-18 14:24:36 -08:00
..
bbm.h
blktrans.h
cfi.h
cfi_endian.h
concat.h
doc2000.h
flashchip.h
fsmc.h
ftl.h
gen_probe.h
inftl.h
latch-addr-flash.h
lpc32xx_mlc.h
lpc32xx_slc.h
map.h mtd: cfi: don't warn about broken geometry for !CONFIG_MTD 2015-11-30 12:36:44 -08:00
mtd.h mtd: add get/set of_node/flash_node helpers 2015-11-11 13:45:05 -08:00
mtdram.h
nand-gpio.h
nand.h mtd: nand: remove unused and buggy get_platform_nandchip() helper function 2015-12-18 14:24:36 -08:00
nand_bch.h
nand_ecc.h
ndfc.h
nftl.h
onenand.h
onenand_regs.h
partitions.h mtd: partitions: support a cleanup callback for parsers 2015-12-09 14:57:44 -08:00
pfow.h
physmap.h
pismo.h
plat-ram.h
qinfo.h
sh_flctl.h mtd: nand: sh_flctl: use the mtd instance embedded in struct nand_chip 2015-12-18 10:54:41 -08:00
sharpsl.h
spear_smi.h
spi-nor.h mtd: spi-nor: include mtd.h header for struct mtd_info definition 2015-11-30 12:02:29 -08:00
super.h
ubi.h
xip.h