diff options
Diffstat (limited to 'drivers/char/vme_scc.c')
-rw-r--r-- | drivers/char/vme_scc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/vme_scc.c b/drivers/char/vme_scc.c index 19ba83635dd7..33e71e23b212 100644 --- a/drivers/char/vme_scc.c +++ b/drivers/char/vme_scc.c | |||
@@ -875,13 +875,13 @@ static int scc_open (struct tty_struct * tty, struct file * filp) | |||
875 | local_irq_save(flags); | 875 | local_irq_save(flags); |
876 | #if defined(CONFIG_MVME147_SCC) || defined(CONFIG_MVME162_SCC) | 876 | #if defined(CONFIG_MVME147_SCC) || defined(CONFIG_MVME162_SCC) |
877 | if (MACH_IS_MVME147 || MACH_IS_MVME16x) { | 877 | if (MACH_IS_MVME147 || MACH_IS_MVME16x) { |
878 | for (i=0; i<sizeof(mvme_init_tab)/sizeof(*mvme_init_tab); ++i) | 878 | for (i = 0; i < ARRAY_SIZE(mvme_init_tab); ++i) |
879 | SCCwrite(mvme_init_tab[i].reg, mvme_init_tab[i].val); | 879 | SCCwrite(mvme_init_tab[i].reg, mvme_init_tab[i].val); |
880 | } | 880 | } |
881 | #endif | 881 | #endif |
882 | #if defined(CONFIG_BVME6000_SCC) | 882 | #if defined(CONFIG_BVME6000_SCC) |
883 | if (MACH_IS_BVME6000) { | 883 | if (MACH_IS_BVME6000) { |
884 | for (i=0; i<sizeof(bvme_init_tab)/sizeof(*bvme_init_tab); ++i) | 884 | for (i = 0; i < ARRAY_SIZE(bvme_init_tab); ++i) |
885 | SCCwrite(bvme_init_tab[i].reg, bvme_init_tab[i].val); | 885 | SCCwrite(bvme_init_tab[i].reg, bvme_init_tab[i].val); |
886 | } | 886 | } |
887 | #endif | 887 | #endif |