diff options
author | Eric Bénard <eric@eukrea.com> | 2013-09-09 22:00:25 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-09-10 08:19:35 +0200 |
commit | 524d2c81a0ed5f0cbbde95c8a1bf6dd0239cce3e (patch) | |
tree | 13f3ab2394b7a7056a73025ae7a1dd68f91fdc35 | |
parent | 9d2745425e554c61a8cadf48e10de2220a16df19 (diff) | |
download | barebox-524d2c81a0ed5f0cbbde95c8a1bf6dd0239cce3e.tar.gz barebox-524d2c81a0ed5f0cbbde95c8a1bf6dd0239cce3e.tar.xz |
mxs_spi: fix compile error
this fix :
drivers/spi/mxs_spi.c:29:22: fatal error: mach/mxs.h: No such file or directory
and
drivers/spi/mxs_spi.c: In function 'mxs_spi_setup':
drivers/spi/mxs_spi.c:102:2: error: too few arguments to function 'stmp_reset_block'
include/stmp-device.h:21:12: note: declared here
only compile tested ATM
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/spi/mxs_spi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c index 4e539bfbca..a80365264c 100644 --- a/drivers/spi/mxs_spi.c +++ b/drivers/spi/mxs_spi.c @@ -26,7 +26,6 @@ #include <asm/mmu.h> #include <mach/generic.h> #include <mach/imx-regs.h> -#include <mach/mxs.h> #include <mach/clock.h> #include <mach/ssp.h> @@ -100,7 +99,7 @@ static int mxs_spi_setup(struct spi_device *spi) return -EINVAL; } - stmp_reset_block(mxs->regs + HW_SSP_CTRL0); + stmp_reset_block(mxs->regs + HW_SSP_CTRL0, 0); val |= SSP_CTRL0_SSP_ASSERT_OUT(spi->chip_select); val |= SSP_CTRL0_BUS_WIDTH(0); |