mtd: gpmi: do not use the mtd->writesize
authorHuang Shijie <b32955@freescale.com>
Fri, 3 Jan 2014 03:01:41 +0000 (11:01 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 11 Mar 2014 05:42:30 +0000 (22:42 -0700)
commit4a57d670a9edb56d7cbc8d9075c7b242e0670ecf
treec9cb833863d3f9ca044a5a04ba5d75edf5d50907
parente004debdadf1a661dcd24e2a654e56b0a113e29e
mtd: gpmi: do not use the mtd->writesize

The nfc_geo->payload_size is equal to the mtd->writesize now,
use the nfc_geo->payload_size to replace the mtd->writesize.

This patch makes preparation for the gpmi's subpage read support.
In the subpage support, the nfc_geo->payload_size maybe smaller then
the mtd->writesize.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c