Skip to content

Commit

Permalink
spi/imx: mark base member in spi_imx_data as __iomem
Browse files Browse the repository at this point in the history
This fixes 36 sparse warnings like:

	drivers/spi/spi-imx.c:143:1: warning: incorrect type in argument 1 (different address spaces)
	drivers/spi/spi-imx.c:143:1:    expected void const volatile [noderef] <asn:2>*<noident>
	drivers/spi/spi-imx.c:143:1:    got void *

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Uwe Kleine-König authored and Grant Likely committed Mar 30, 2012
1 parent 5039a86 commit cc4d22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-imx.c
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ struct spi_imx_data {
struct spi_bitbang bitbang;

struct completion xfer_done;
void *base;
void __iomem *base;
int irq;
struct clk *clk;
unsigned long spi_clk;

0 comments on commit cc4d22a

Please sign in to comment.