]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: pxa3xx: Replace host->page_size by mtd->writesize
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Thu, 7 Nov 2013 15:17:17 +0000 (12:17 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 3 Jan 2014 19:22:11 +0000 (11:22 -0800)
commit266370679253a5c71b0d156ae2a4388c178e8fe7
tree9e2b85577b502767bb3908fececd9a614649145f
parent51f8d355d26a5199db0fa612ddcb1890b9026037
mtd: nand: pxa3xx: Replace host->page_size by mtd->writesize

There's no need to privately store the device page size as it's
available in mtd structure field mtd->writesize.
Also, this removes the hardcoded page size value, leaving the
auto-detected value only.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Tested-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/pxa3xx_nand.c