]> git.dujemihanovic.xyz Git - u-boot.git/commit
nand: remove dead code and suspend/resume
authorScott Wood <scottwood@freescale.com>
Wed, 25 Aug 2010 22:42:49 +0000 (17:42 -0500)
committerScott Wood <scottwood@freescale.com>
Mon, 11 Oct 2010 20:10:35 +0000 (15:10 -0500)
commit5b8e6bb517ea4f6d8ba9fa11c84e0373bc7ead2c
tree7163fa332c56e404374cffa5723db3a8cd8de289
parent8c5659a6daa2a3af75ec762d25f40dd053bed26f
nand: remove dead code and suspend/resume

Get rid of the several "#if 0" sections that were keeping around Linux
code that isn't relevant to U-Boot.  Besides cluttering the code, these
sections make tracking upstream changes harder, rather than easier.
It's easy to discard obviously irrelevant diff hunks that patch rejects,
but it's not as easy to notice hunks that apply cleanly to the #if 0
section, but *are* relevant to U-Boot and require modification elsewhere.

Also remove suspend/resume, as this is not applicable to U-Boot.  Removal
saves 232 bytes on powerpc.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>
drivers/mtd/mtdpart.c
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_bbt.c
drivers/mtd/nand/nand_ecc.c
drivers/mtd/nand/nand_util.c
include/linux/mtd/mtd.h