1 --- a/drivers/spi/spi-ap83.c
2 +++ b/drivers/spi/spi-ap83.c
6 #include <linux/kernel.h>
7 +#include <linux/module.h>
8 #include <linux/init.h>
9 #include <linux/delay.h>
10 #include <linux/spinlock.h>
12 #include <linux/bitops.h>
13 #include <linux/gpio.h>
15 -#include <asm/mach-ar71xx/ar71xx.h>
16 -#include <asm/mach-ar71xx/platform.h>
17 +#include <asm/mach-ath79/ath79.h>
19 #define DRV_DESC "Atheros AP83 board SPI Controller driver"
20 #define DRV_VERSION "0.1.0"
21 @@ -106,7 +106,7 @@ static void ap83_spi_chipselect(struct s
22 dev_dbg(&spi->dev, "set CS to %d\n", (on) ? 0 : 1);
25 - ar71xx_flash_acquire();
26 + ath79_flash_acquire();
29 ap83_spi_rr(sp, sp->addr);
30 @@ -114,7 +114,7 @@ static void ap83_spi_chipselect(struct s
31 gpio_set_value(AP83_SPI_GPIO_CS, 0);
33 gpio_set_value(AP83_SPI_GPIO_CS, 1);
34 - ar71xx_flash_release();
35 + ath79_flash_release();
39 @@ -127,7 +127,7 @@ static void ap83_spi_chipselect(struct s
41 #define EXPAND_BITBANG_TXRX
42 #include <linux/spi/spi_bitbang.h>
43 -#include "spi_bitbang_txrx.h"
44 +#include "spi-bitbang-txrx.h"
46 static u32 ap83_spi_txrx_mode0(struct spi_device *spi,
47 unsigned nsecs, u32 word, u8 bits)