Skip to content

Commit

Permalink
Staging: et131x: Fix the add_10bit macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Oct 14, 2009
1 parent b9d2dde commit 317c68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/et131x/et1310_address_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ typedef union _TXDMA_PR_NUM_DES_t {

extern inline void add_10bit(u32 *v, int n)
{
*v = INDEX10(*v + n);
*v = INDEX10(*v + n) | (*v & ET_DMA10_WRAP);
}

/*
Expand Down

0 comments on commit 317c68c

Please sign in to comment.