aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/atmel_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/atmel_spi.c')
-rw-r--r--drivers/spi/atmel_spi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c
index c2a9fef58edc..6fa260d1a9be 100644
--- a/drivers/spi/atmel_spi.c
+++ b/drivers/spi/atmel_spi.c
@@ -23,6 +23,10 @@
23#include <asm/arch/board.h> 23#include <asm/arch/board.h>
24#include <asm/arch/gpio.h> 24#include <asm/arch/gpio.h>
25 25
26#ifdef CONFIG_ARCH_AT91
27#include <asm/arch/cpu.h>
28#endif
29
26#include "atmel_spi.h" 30#include "atmel_spi.h"
27 31
28/* 32/*
@@ -491,7 +495,7 @@ static int atmel_spi_transfer(struct spi_device *spi, struct spi_message *msg)
491 return 0; 495 return 0;
492} 496}
493 497
494static void atmel_spi_cleanup(const struct spi_device *spi) 498static void atmel_spi_cleanup(struct spi_device *spi)
495{ 499{
496 if (spi->controller_state) 500 if (spi->controller_state)
497 gpio_free((unsigned int)spi->controller_data); 501 gpio_free((unsigned int)spi->controller_data);