Message ID | 1348487791-18435-2-git-send-email-p.wilczek@samsung.com |
---|---|
State | Rejected |
Delegated to: | Minkyu Kang |
Headers | show |
diff --git a/drivers/spi/soft_spi.c b/drivers/spi/soft_spi.c index 13df8cb..1e7e9f7 100644 --- a/drivers/spi/soft_spi.c +++ b/drivers/spi/soft_spi.c @@ -26,6 +26,7 @@ #include <common.h> #include <spi.h> +#include <asm/gpio.h> #include <malloc.h> @@ -59,7 +60,9 @@ static inline struct soft_spi_slave *to_soft_spi(struct spi_slave *slave) void spi_init (void) { #ifdef SPI_INIT +#ifdef CONFIG_SYS_IMMR volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR; +#endif SPI_INIT; #endif