OSDN Git Service

input: ixp4xx-beeper: don't use symbols from <mach/timex.h>
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 26 Nov 2013 14:19:04 +0000 (15:19 +0100)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 20 Dec 2013 10:44:21 +0000 (11:44 +0100)
mach/timex.h is about to be dropped so don't use symbols defined in
there. For ixp4xx there is a suitable substitute for IXP4XX_TIMER_FREQ,
i.e. a global and exported variable that holds the same value.

Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/input/misc/ixp4xx-beeper.c

index 17ccba8..ed8e5e8 100644 (file)
@@ -67,7 +67,7 @@ static int ixp4xx_spkr_event(struct input_dev *dev, unsigned int type, unsigned
        }
 
        if (value > 20 && value < 32767)
-               count = (IXP4XX_TIMER_FREQ / (value * 4)) - 1;
+               count = (ixp4xx_timer_freq / (value * 4)) - 1;
 
        ixp4xx_spkr_control(pin, count);