diff options
author | Alan Cox <alan@linux.intel.com> | 2009-10-12 10:38:26 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-10-14 17:14:39 -0400 |
commit | 317c68c04d53198f38314d29ba28b8fc632eccab (patch) | |
tree | 6823b31710ca0898b8e13f25e3f9f82043963ca0 /drivers | |
parent | b9d2dde0556cde38105033cb39841658d81921d2 (diff) |
Staging: et131x: Fix the add_10bit macro
Duh.. we need to preserve the wrap bit when adding.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/et131x/et1310_address_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/et131x/et1310_address_map.h b/drivers/staging/et131x/et1310_address_map.h index 6294d3814e72..2c3d65a622a7 100644 --- a/drivers/staging/et131x/et1310_address_map.h +++ b/drivers/staging/et131x/et1310_address_map.h | |||
@@ -223,7 +223,7 @@ typedef union _TXDMA_PR_NUM_DES_t { | |||
223 | 223 | ||
224 | extern inline void add_10bit(u32 *v, int n) | 224 | extern inline void add_10bit(u32 *v, int n) |
225 | { | 225 | { |
226 | *v = INDEX10(*v + n); | 226 | *v = INDEX10(*v + n) | (*v & ET_DMA10_WRAP); |
227 | } | 227 | } |
228 | 228 | ||
229 | /* | 229 | /* |