summaryrefslogtreecommitdiff
path: root/arch/avr32/mach-at32ap
diff options
context:
space:
mode:
authorAlejandro Martinez Ruiz <alex@flawedcode.org>2007-10-22 21:18:24 +0200
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-10-23 11:20:26 +0200
commit2298a1dd819213802b8a7f955f9b382f5e92127a (patch)
treeb4c2462f83d45e8330cc827c20142ef6b4149789 /arch/avr32/mach-at32ap
parenteaf5f925a31973e2fdc50c785665b90ff444eceb (diff)
downloadlinux-3.10-2298a1dd819213802b8a7f955f9b382f5e92127a.tar.gz
linux-3.10-2298a1dd819213802b8a7f955f9b382f5e92127a.tar.bz2
linux-3.10-2298a1dd819213802b8a7f955f9b382f5e92127a.zip
[AVR32] ARRAY_SIZE() cleanup
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org> Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/mach-at32ap')
-rw-r--r--arch/avr32/mach-at32ap/time-tc.c2
1 files changed, 1 insertions, 1 deletions
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;