linux/ixp4xx: fix an embracing mistake on commit r23150 (thank you KanjiMonster)
authorAlexandros C. Couloumbis <alex@ozo.com>
Wed, 29 Sep 2010 15:09:07 +0000 (15:09 +0000)
committerAlexandros C. Couloumbis <alex@ozo.com>
Wed, 29 Sep 2010 15:09:07 +0000 (15:09 +0000)
SVN-Revision: 23153

target/linux/ixp4xx/patches-2.6.36/050-disable_dmabounce.patch

index 33509baa2b903ce11ea196c66bb1dc46937d6786..bdbec619e34d62cbf02fd66493f31386062935d0 100644 (file)
  #include <linux/scatterlist.h>
  
  #include <asm/cacheflush.h>
-@@ -248,8 +249,15 @@ static inline dma_addr_t map_single(stru
+@@ -248,7 +249,13 @@ static inline dma_addr_t map_single(stru
                needs_bounce = (dma_addr | (dma_addr + size - 1)) & ~mask;
        }
  
 +
 +      if (device_info && (needs_bounce || dma_needs_bounce_2(dev, dma_addr, size))) {
                struct safe_buffer *buf;
-+#endif
  
                buf = alloc_safe_buffer(device_info, ptr, size, dir);
-               if (buf == 0) {
+@@ -282,6 +289,7 @@ static inline dma_addr_t map_single(stru
+       return dma_addr;
+ }
++#endif
+ static inline void unmap_single(struct device *dev, dma_addr_t dma_addr,
+               size_t size, enum dma_data_direction dir)