Skip to content

Commit

Permalink
[AVR32] ARRAY_SIZE() cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
  • Loading branch information
Alejandro Martinez Ruiz authored and Haavard Skinnemoen committed Oct 23, 2007
1 parent eaf5f92 commit 2298a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/avr32/mach-at32ap/time-tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2298a1d

Please sign in to comment.