arm/ixp4xx: Rename FREQ macro to avoid collisions

FREQ is a ridiculously short name for a platform-specific macro in a
generic header, and it now conflicts with an enumeration in the
gspca/ov519 driver.

Also delete conditional reference to ixp4xx_get_board_tick_rate()
which is not defined anywhere.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>

authored by Ben Hutchings and committed by Krzysztof Hałasa e66a022a 3c3a3b4c

+6 -9
+2 -2
arch/arm/mach-ixp4xx/common.c
··· 432 .flags = CLOCK_SOURCE_IS_CONTINUOUS, 433 }; 434 435 - unsigned long ixp4xx_timer_freq = FREQ; 436 EXPORT_SYMBOL(ixp4xx_timer_freq); 437 static void __init ixp4xx_clocksource_init(void) 438 { ··· 496 497 static void __init ixp4xx_clockevent_init(void) 498 { 499 - clockevent_ixp4xx.mult = div_sc(FREQ, NSEC_PER_SEC, 500 clockevent_ixp4xx.shift); 501 clockevent_ixp4xx.max_delta_ns = 502 clockevent_delta2ns(0xfffffffe, &clockevent_ixp4xx);
··· 432 .flags = CLOCK_SOURCE_IS_CONTINUOUS, 433 }; 434 435 + unsigned long ixp4xx_timer_freq = IXP4XX_TIMER_FREQ; 436 EXPORT_SYMBOL(ixp4xx_timer_freq); 437 static void __init ixp4xx_clocksource_init(void) 438 { ··· 496 497 static void __init ixp4xx_clockevent_init(void) 498 { 499 + clockevent_ixp4xx.mult = div_sc(IXP4XX_TIMER_FREQ, NSEC_PER_SEC, 500 clockevent_ixp4xx.shift); 501 clockevent_ixp4xx.max_delta_ns = 502 clockevent_delta2ns(0xfffffffe, &clockevent_ixp4xx);
+3 -2
arch/arm/mach-ixp4xx/include/mach/timex.h
··· 10 * 66.66... MHz. We do a convulted calculation of CLOCK_TICK_RATE b/c the 11 * timer register ignores the bottom 2 bits of the LATCH value. 12 */ 13 - #define FREQ 66666000 14 - #define CLOCK_TICK_RATE (((FREQ / HZ & ~IXP4XX_OST_RELOAD_MASK) + 1) * HZ) 15
··· 10 * 66.66... MHz. We do a convulted calculation of CLOCK_TICK_RATE b/c the 11 * timer register ignores the bottom 2 bits of the LATCH value. 12 */ 13 + #define IXP4XX_TIMER_FREQ 66666000 14 + #define CLOCK_TICK_RATE \ 15 + (((IXP4XX_TIMER_FREQ / HZ & ~IXP4XX_OST_RELOAD_MASK) + 1) * HZ) 16
+1 -5
drivers/input/misc/ixp4xx-beeper.c
··· 69 } 70 71 if (value > 20 && value < 32767) 72 - #ifndef FREQ 73 - count = (ixp4xx_get_board_tick_rate() / (value * 4)) - 1; 74 - #else 75 - count = (FREQ / (value * 4)) - 1; 76 - #endif 77 78 ixp4xx_spkr_control(pin, count); 79
··· 69 } 70 71 if (value > 20 && value < 32767) 72 + count = (IXP4XX_TIMER_FREQ / (value * 4)) - 1; 73 74 ixp4xx_spkr_control(pin, count); 75