Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78013
b: refs/heads/master
c: 2b22c03
h: refs/heads/master
i:
  78011: 66f0af9
v: v3
  • Loading branch information
Alejandro Martinez Ruiz authored and Ralf Baechle committed Jan 29, 2008
1 parent e9b64b3 commit 69435be
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 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: 161548bf3529d53398adb3451cdc781cc324fc1d
refs/heads/master: 2b22c034d04d3632a339d14d5803c8f94e412608
2 changes: 1 addition & 1 deletion trunk/arch/mips/au1000/common/dbdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static dbdev_tab_t dbdev_tab[] = {
{ 0, 0, 0, 0, 0, 0, 0 },
};

#define DBDEV_TAB_SIZE (sizeof(dbdev_tab) / sizeof(dbdev_tab_t))
#define DBDEV_TAB_SIZE ARRAY_SIZE(dbdev_tab)

static chan_tab_t *chan_tab_ptr[NUM_DBDMA_CHANS];

Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/mips/kernel/kspd.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ static unsigned int translate_open_flags(int flags)
int i;
unsigned int ret = 0;

for (i = 0; i < (sizeof(open_flags_table) / sizeof(struct apsp_table));
i++) {
for (i = 0; i < ARRAY_SIZE(open_flags_table); i++) {
if( (flags & open_flags_table[i].sp) ) {
ret |= open_flags_table[i].ap;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/philips/pnx8550/common/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct resource standard_io_resources[] = {
},
};

#define STANDARD_IO_RESOURCES (sizeof(standard_io_resources)/sizeof(struct resource))
#define STANDARD_IO_RESOURCES ARRAY_SIZE(standard_io_resources)

extern struct resource pci_io_resource;
extern struct resource pci_mem_resource;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/vr41xx/nec-cmbvr4133/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static struct mtd_partition cmbvr4133_mtd_parts[] = {
}
};

#define number_partitions (sizeof(cmbvr4133_mtd_parts)/sizeof(struct mtd_partition))
#define number_partitions ARRAY_SIZE(cmbvr4133_mtd_parts)
#endif

extern void i8259_init(void);
Expand Down

0 comments on commit 69435be

Please sign in to comment.