]> err.no Git - linux-2.6/commitdiff
[AVR32] ARRAY_SIZE() cleanup
authorAlejandro Martinez Ruiz <alex@flawedcode.org>
Mon, 22 Oct 2007 19:18:24 +0000 (21:18 +0200)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Tue, 23 Oct 2007 09:20:26 +0000 (11:20 +0200)
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/mach-at32ap/time-tc.c

index e3070bdd4bb960b03aabcc31e56403dfb981f3bf..10265863c9822b1ec37600d84548136976a73462 100644 (file)
@@ -79,7 +79,7 @@ static int avr32_timer_calc_div_and_set_jiffies(struct clk *pclk)
 {
        unsigned int cycles_max = (clocksource_avr32.mask + 1) / 2;
        unsigned int divs[] = { 4, 8, 16, 32 };
-       int divs_size = sizeof(divs) / sizeof(*divs);
+       int divs_size = ARRAY_SIZE(divs);
        int i = 0;
        unsigned long count_hz;
        unsigned long shift;