aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi-nor
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2014-04-10 18:49:38 -0400
committerBrian Norris <computersforpeace@gmail.com>2014-04-16 05:14:06 -0400
commita965d04c977096ff91f12f96eb7b35b7b03af48c (patch)
tree7458f63a79d8c25f09697d999749529ed900d598 /drivers/mtd/spi-nor
parent8ac326fce996893cadc0f161207f4069fdbaa2cd (diff)
mtd: fsl-quadspi: fix __iomem annotations
This corrects some sparse warnings: drivers/mtd/spi-nor/fsl-quadspi.c:281:31: warning: incorrect type in initializer (different address spaces) [sparse] drivers/mtd/spi-nor/fsl-quadspi.c:281:31: expected void *[noderef] <asn:2>base [sparse] drivers/mtd/spi-nor/fsl-quadspi.c:281:31: got void [noderef] <asn:2>*iobase [sparse] (etc.) Signed-off-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'drivers/mtd/spi-nor')
-rw-r--r--drivers/mtd/spi-nor/fsl-quadspi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
index b41bbbc531ff..8d659a2888d5 100644
--- a/drivers/mtd/spi-nor/fsl-quadspi.c
+++ b/drivers/mtd/spi-nor/fsl-quadspi.c
@@ -278,7 +278,7 @@ static irqreturn_t fsl_qspi_irq_handler(int irq, void *dev_id)
278 278
279static void fsl_qspi_init_lut(struct fsl_qspi *q) 279static void fsl_qspi_init_lut(struct fsl_qspi *q)
280{ 280{
281 void *__iomem base = q->iobase; 281 void __iomem *base = q->iobase;
282 int rxfifo = q->devtype_data->rxfifo; 282 int rxfifo = q->devtype_data->rxfifo;
283 u32 lut_base; 283 u32 lut_base;
284 u8 cmd, addrlen, dummy; 284 u8 cmd, addrlen, dummy;
@@ -422,7 +422,7 @@ static int fsl_qspi_get_seqid(struct fsl_qspi *q, u8 cmd)
422static int 422static int
423fsl_qspi_runcmd(struct fsl_qspi *q, u8 cmd, unsigned int addr, int len) 423fsl_qspi_runcmd(struct fsl_qspi *q, u8 cmd, unsigned int addr, int len)
424{ 424{
425 void *__iomem base = q->iobase; 425 void __iomem *base = q->iobase;
426 int seqid; 426 int seqid;
427 u32 reg, reg2; 427 u32 reg, reg2;
428 int err; 428 int err;