target/ath25: fix compile issue for module setup
authoracoul <alex@ozo.com>
Fri, 30 Oct 2015 17:34:51 +0000 (19:34 +0200)
committeracoul <alex@ozo.com>
Thu, 31 Mar 2016 05:28:36 +0000 (08:28 +0300)
target/linux/ath25/patches-4.1/301-fix_module_loading.patch [new file with mode: 0644]

diff --git a/target/linux/ath25/patches-4.1/301-fix_module_loading.patch b/target/linux/ath25/patches-4.1/301-fix_module_loading.patch
new file mode 100644 (file)
index 0000000..ff8f35e
--- /dev/null
@@ -0,0 +1,23 @@
+
+--- a/drivers/net/ethernet/atheros/ar231x/ar231x.h
++++ b/drivers/net/ethernet/atheros/ar231x/ar231x.h
+@@ -29,6 +29,8 @@
+ #define IS_DMA_RX_INT(X)   (((X) & (DMA_STATUS_RI)) != 0)
+ #define IS_DRIVER_OWNED(X) (((X) & (DMA_TX_OWN))    == 0)
++#define ath25_dma_cache_inv(_start,_size) do { } while (0)
++
+ #define AR2313_TX_TIMEOUT (HZ/4)
+ /* Rings */
+--- a/drivers/net/ethernet/atheros/ar231x/ar231x.c
++++ b/drivers/net/ethernet/atheros/ar231x/ar231x.c
+@@ -392,7 +392,7 @@ static int ar231x_allocate_descriptors(s
+               return 1;
+       /* invalidate caches */
+-      dma_cache_inv((unsigned int)space, size);
++      ath25_dma_cache_inv((unsigned int)space, size);
+       /* now convert pointer to KSEG1 */
+       space = (ar231x_descr_t *)KSEG1ADDR(space);