]> err.no Git - linux-2.6/commit
CRIS v32: Clean up nandflash.c for ARTPEC-3 and ETRAX FS.
authorJesper Nilsson <jesper.nilsson@axis.com>
Fri, 8 Feb 2008 09:24:41 +0000 (10:24 +0100)
committerJesper Nilsson <jesper.nilsson@axis.com>
Fri, 8 Feb 2008 10:16:45 +0000 (11:16 +0100)
commit9f68ff9ee9ecae38a3b0bb3b9c4799cded19b27c
treebefdbd9ada23481c697c5ec644cacc19a00ae8ed
parentad433f2368c37a64d119a997a0530cc28b9a5566
CRIS v32: Clean up nandflash.c for ARTPEC-3 and ETRAX FS.

Clean up issues noticed by Andrew Morton:

- Use a combined struct for allocating the mtd_info and nand_chip structs
  instead of using anonymous memory as the example in
  Documentation/DocBook/mtdnand.tmpl
- Use kzalloc instead of using kmalloc/memset(0)
- Make crisv32_device_ready static.
arch/cris/arch-v32/drivers/mach-a3/nandflash.c
arch/cris/arch-v32/drivers/mach-fs/nandflash.c