diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-11-26 15:19:04 +0100 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-12-20 11:44:21 +0100 |
commit | 3ae1a6b153b099fc7e50f9c74ae208bd72c02c3d (patch) | |
tree | ddabb030e7fc0c478d111566c7d1ec816c2447a0 /drivers/input | |
parent | ac11a1d46cf06a8b5b3535f0ce12b6c1cb48ddab (diff) | |
download | op-kernel-dev-3ae1a6b153b099fc7e50f9c74ae208bd72c02c3d.zip op-kernel-dev-3ae1a6b153b099fc7e50f9c74ae208bd72c02c3d.tar.gz |
input: ixp4xx-beeper: don't use symbols from <mach/timex.h>
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/ixp4xx-beeper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/ixp4xx-beeper.c b/drivers/input/misc/ixp4xx-beeper.c index 17ccba8..ed8e5e8 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); |