summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2010-11-01 14:02:22 +0800
committerScott Sweeny <scott.sweeny@timesys.com>2011-01-19 11:50:19 -0500
commitf0cd6d64fe0e7f7e68a6e240de81c2f9ef9e0c69 (patch)
tree06c2f0356f4b99c7a409e4e61226305f762b9eb6
parentcf48d1fbf59f3f04d1d9fc91bed8404b7f598e05 (diff)
ENGR00133309 NAND : fix compile warnings for GPMI
fix compile warnings for the GPMI. Signed-off-by: Huang Shijie <b32955@freescale.com>
-rw-r--r--drivers/mtd/nand/gpmi-nfc/gpmi-nfc-mil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/nand/gpmi-nfc/gpmi-nfc-mil.c b/drivers/mtd/nand/gpmi-nfc/gpmi-nfc-mil.c
index 765390638135..3893af8542cf 100644
--- a/drivers/mtd/nand/gpmi-nfc/gpmi-nfc-mil.c
+++ b/drivers/mtd/nand/gpmi-nfc/gpmi-nfc-mil.c
@@ -599,8 +599,8 @@ static void mil_handle_block_mark_swapping(struct gpmi_nfc_data *this,
* @nand: A pointer to the owning NAND Flash MTD.
* @buf: A pointer to the destination buffer.
*/
-static int mil_ecc_read_page(struct mtd_info *mtd,
- struct nand_chip *nand, uint8_t *buf)
+static int mil_ecc_read_page(struct mtd_info *mtd, struct nand_chip *nand,
+ uint8_t *buf, int page)
{
struct gpmi_nfc_data *this = nand->priv;
struct device *dev = this->dev;
@@ -1898,7 +1898,7 @@ static int mil_boot_areas_init(struct gpmi_nfc_data *this)
/* Find the general use MTD. */
i = 0;
- while (search_mtd = get_mtd_device(0, i)) {
+ while ((search_mtd = get_mtd_device(0, i))) {
/* Check if we got nonsense. */
@@ -1994,7 +1994,7 @@ static int mil_boot_areas_init(struct gpmi_nfc_data *this)
/* Find the remainder partitions. */
i = 0;
- while (search_mtd = get_mtd_device(0, i)) {
+ while ((search_mtd = get_mtd_device(0, i))) {
/* Check if we got nonsense. */