Skip to content

Commit

Permalink
mtd: rawnand: fsl_ifc: Add an __iomem specifier on eccstat_regs
Browse files Browse the repository at this point in the history
The local eccstat_regs variable in fsl_ifc_run_command() is missing an
__iomem specifier, and sparce complains about that.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
  • Loading branch information
Boris Brezillon authored and Miquel Raynal committed Jul 18, 2018
1 parent b30a2bd commit 62a3160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/fsl_ifc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static void fsl_ifc_run_command(struct mtd_info *mtd)
int bufnum = nctrl->page & priv->bufnum_mask;
int sector_start = bufnum * chip->ecc.steps;
int sector_end = sector_start + chip->ecc.steps - 1;
__be32 *eccstat_regs;
__be32 __iomem *eccstat_regs;

eccstat_regs = ifc->ifc_nand.nand_eccstat;
eccstat = ifc_in32(&eccstat_regs[sector_start / 4]);
Expand Down

0 comments on commit 62a3160

Please sign in to comment.