]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
mtd: rawnand: fsl_ifc: Add an __iomem specifier on eccstat_regs
authorBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 9 Jul 2018 20:09:38 +0000 (22:09 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 18 Jul 2018 08:10:22 +0000 (10:10 +0200)
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>
drivers/mtd/nand/raw/fsl_ifc_nand.c

index 382b67e97174a15735f47639a74aaefaa72154fa..75d3c951f61ad98777e6cd32886ff971cd5d4fac 100644 (file)
@@ -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]);