2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-17 18:14:34 +08:00
linux-next/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 mtd: nand_bbt: kill NAND_BBT_SCANALLPAGES 2013-11-06 23:33:14 -08:00
blktrans.h
cfi_endian.h
cfi.h mtd: cfi: deinline large functions 2015-05-27 12:42:16 -07:00
concat.h
doc2000.h
flashchip.h
fsmc.h mtd: nand: fsmc: update of OF support 2013-08-05 20:48:49 +01:00
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 mtd: mtdram: add missing 'const' 2014-01-20 11:55:23 -08:00
nand_bch.h
nand_ecc.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
ndfc.h
nftl.h
onenand_regs.h
onenand.h
partitions.h mtd: partitions: support a cleanup callback for parsers 2015-12-09 14:57:44 -08:00
pfow.h mtd: pfow: remove unused variable 2014-05-28 00:05:23 -07:00
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 Shiraz has moved 2014-04-18 16:40:08 -07:00
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 UBI: Add initial support for scatter gather 2015-01-28 16:04:26 +01:00
xip.h