X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e3c5dcc5ee15c3b744cdd5bef8cf0ea8d20e4021..be8e44bc682b5dbf29121d3e0425a746a6a01977:/target/linux/ar71xx/files/drivers/spi/spi-ap83.c?ds=inline diff --git a/target/linux/ar71xx/files/drivers/spi/spi-ap83.c b/target/linux/ar71xx/files/drivers/spi/spi-ap83.c index de8780dbb..33843a6da 100644 --- a/target/linux/ar71xx/files/drivers/spi/spi-ap83.c +++ b/target/linux/ar71xx/files/drivers/spi/spi-ap83.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include @@ -21,8 +22,7 @@ #include #include -#include -#include +#include #define DRV_DESC "Atheros AP83 board SPI Controller driver" #define DRV_VERSION "0.1.0" @@ -106,7 +106,7 @@ static void ap83_spi_chipselect(struct spi_device *spi, int on) dev_dbg(&spi->dev, "set CS to %d\n", (on) ? 0 : 1); if (on) { - ar71xx_flash_acquire(); + ath79_flash_acquire(); sp->addr = 0; ap83_spi_rr(sp, sp->addr); @@ -114,7 +114,7 @@ static void ap83_spi_chipselect(struct spi_device *spi, int on) gpio_set_value(AP83_SPI_GPIO_CS, 0); } else { gpio_set_value(AP83_SPI_GPIO_CS, 1); - ar71xx_flash_release(); + ath79_flash_release(); } } @@ -127,7 +127,7 @@ static void ap83_spi_chipselect(struct spi_device *spi, int on) #define EXPAND_BITBANG_TXRX #include -#include "spi_bitbang_txrx.h" +#include "spi-bitbang-txrx.h" static u32 ap83_spi_txrx_mode0(struct spi_device *spi, unsigned nsecs, u32 word, u8 bits)