Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172674
b: refs/heads/master
c: af0940d
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Stefan Richter committed Nov 18, 2009
1 parent 803a389 commit 771e375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2c0a2ac3e59f4764c59c23bd90b571e44256030
refs/heads/master: af0940dac37545b1e7900b19c464fb6367d3f82f
8 changes: 2 additions & 6 deletions trunk/drivers/ieee1394/ohci1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
*
*/

#include <linux/bitops.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/slab.h>
Expand Down Expand Up @@ -434,7 +435,6 @@ static void initialize_dma_trm_ctx(struct dma_trm_ctx *d)
/* Count the number of available iso contexts */
static int get_nb_iso_ctx(struct ti_ohci *ohci, int reg)
{
int i,ctx=0;
u32 tmp;

reg_write(ohci, reg, 0xffffffff);
Expand All @@ -443,11 +443,7 @@ static int get_nb_iso_ctx(struct ti_ohci *ohci, int reg)
DBGMSG("Iso contexts reg: %08x implemented: %08x", reg, tmp);

/* Count the number of contexts */
for (i=0; i<32; i++) {
if (tmp & 1) ctx++;
tmp >>= 1;
}
return ctx;
return hweight32(tmp);
}

/* Global initialization */
Expand Down

0 comments on commit 771e375

Please sign in to comment.