From: Uwe Kleine-König Date: Tue, 26 Nov 2013 14:19:04 +0000 (+0100) Subject: input: ixp4xx-beeper: don't use symbols from X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3ae1a6b153b099fc7e50f9c74ae208bd72c02c3d;p=linux-beck.git input: ixp4xx-beeper: don't use symbols from 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 Signed-off-by: Uwe Kleine-König --- diff --git a/drivers/input/misc/ixp4xx-beeper.c b/drivers/input/misc/ixp4xx-beeper.c index 17ccba88d636..ed8e5e8449d3 100644 --- a/drivers/input/misc/ixp4xx-beeper.c +++ b/drivers/input/misc/ixp4xx-beeper.c @@ -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);