From 2298a1dd819213802b8a7f955f9b382f5e92127a Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Ruiz Date: Mon, 22 Oct 2007 21:18:24 +0200 Subject: [AVR32] ARRAY_SIZE() cleanup Signed-off-by: Alejandro Martinez Ruiz Signed-off-by: Haavard Skinnemoen --- arch/avr32/mach-at32ap/time-tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/avr32') diff --git a/arch/avr32/mach-at32ap/time-tc.c b/arch/avr32/mach-at32ap/time-tc.c index e3070bdd4bb..10265863c98 100644 --- a/arch/avr32/mach-at32ap/time-tc.c +++ b/arch/avr32/mach-at32ap/time-tc.c @@ -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; -- cgit v1.2.3-70-g09d2