diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2012-09-13 19:56:07 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-09-29 10:54:13 -0400 |
commit | 2caf87a49eb53fac266b1271ebd6c1d1daa0d0d0 (patch) | |
tree | ebdd2a10d8fb94370242b2fd46d495ad4c35d2fc /drivers/mtd | |
parent | bb0a13a13411c4ce24c48c8ff3cdf7b48d237240 (diff) |
mtd: fsl_ifc_nand: fix sparse warnings
drivers/mtd/nand/fsl_ifc_nand.c:196:34: warning: cast removes address space of expression [sparse]
drivers/mtd/nand/fsl_ifc_nand.c:196:34: warning: incorrect type in initializer (different address spaces) [sparse]
drivers/mtd/nand/fsl_ifc_nand.c:196:34: expected unsigned int [noderef] [usertype] <asn:2>*mainarea [sparse]
drivers/mtd/nand/fsl_ifc_nand.c:196:34: got unsigned int [usertype] *<noident> [sparse]
...
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/fsl_ifc_nand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c index e92d223e5e1a..1be83dcc730a 100644 --- a/drivers/mtd/nand/fsl_ifc_nand.c +++ b/drivers/mtd/nand/fsl_ifc_nand.c | |||
@@ -193,7 +193,7 @@ static int is_blank(struct mtd_info *mtd, unsigned int bufnum) | |||
193 | struct nand_chip *chip = mtd->priv; | 193 | struct nand_chip *chip = mtd->priv; |
194 | struct fsl_ifc_mtd *priv = chip->priv; | 194 | struct fsl_ifc_mtd *priv = chip->priv; |
195 | u8 __iomem *addr = priv->vbase + bufnum * (mtd->writesize * 2); | 195 | u8 __iomem *addr = priv->vbase + bufnum * (mtd->writesize * 2); |
196 | u32 __iomem *mainarea = (u32 *)addr; | 196 | u32 __iomem *mainarea = (u32 __iomem *)addr; |
197 | u8 __iomem *oob = addr + mtd->writesize; | 197 | u8 __iomem *oob = addr + mtd->writesize; |
198 | int i; | 198 | int i; |
199 | 199 | ||
@@ -591,8 +591,8 @@ static uint8_t fsl_ifc_read_byte16(struct mtd_info *mtd) | |||
591 | * next byte. | 591 | * next byte. |
592 | */ | 592 | */ |
593 | if (ifc_nand_ctrl->index < ifc_nand_ctrl->read_bytes) { | 593 | if (ifc_nand_ctrl->index < ifc_nand_ctrl->read_bytes) { |
594 | data = in_be16((uint16_t *)&ifc_nand_ctrl-> | 594 | data = in_be16((uint16_t __iomem *)&ifc_nand_ctrl-> |
595 | addr[ifc_nand_ctrl->index]); | 595 | addr[ifc_nand_ctrl->index]); |
596 | ifc_nand_ctrl->index += 2; | 596 | ifc_nand_ctrl->index += 2; |
597 | return (uint8_t) data; | 597 | return (uint8_t) data; |
598 | } | 598 | } |