input/joystick: use get_cycles on ARM
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 Feb 2013 16:11:09 +0000 (17:11 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 14 Mar 2013 21:38:20 +0000 (22:38 +0100)
commit6fdd496e07f511a94ba27e4a1433038b32d6af05
tree58f824cdb5845ada70b725379198bdb3db52fd6d
parent01ffe957e2f0340a13fd40a6577d029f252ad7c7
input/joystick: use get_cycles on ARM

ARM normally has an accurate clock source, so
we can theoretically use analog joysticks more
accurately and at the same time avoid the
build warning

 #warning Precise timer not defined for this architecture.

from the joystick driver.

Now, why anybody would use that driver no ARM I have no
idea, but Ben Dooks enabled it in the s3c2410_defconfig
along with a bunch of other drivers, even though that
platform has neither ISA nor PCI support. It still
seems to be the right thing to fix this quirk.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Vojtech Pavlik <vojtech@suse.cz>
Cc: Ben Dooks <ben-linux@fluff.org>
drivers/input/joystick/analog.c