aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/atm')
-rw-r--r--drivers/atm/nicstarmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/atm/nicstarmac.c b/drivers/atm/nicstarmac.c
index 480947f4e01e..842e26c45557 100644
--- a/drivers/atm/nicstarmac.c
+++ b/drivers/atm/nicstarmac.c
@@ -134,7 +134,7 @@ nicstar_read_eprom_status( virt_addr_t base )
134 /* Send read instruction */ 134 /* Send read instruction */
135 val = NICSTAR_REG_READ( base, NICSTAR_REG_GENERAL_PURPOSE ) & 0xFFFFFFF0; 135 val = NICSTAR_REG_READ( base, NICSTAR_REG_GENERAL_PURPOSE ) & 0xFFFFFFF0;
136 136
137 for (i=0; i<sizeof rdsrtab/sizeof rdsrtab[0]; i++) 137 for (i=0; i<ARRAY_SIZE(rdsrtab); i++)
138 { 138 {
139 NICSTAR_REG_WRITE( base, NICSTAR_REG_GENERAL_PURPOSE, 139 NICSTAR_REG_WRITE( base, NICSTAR_REG_GENERAL_PURPOSE,
140 (val | rdsrtab[i]) ); 140 (val | rdsrtab[i]) );