[package] input-utils: update to make it works with new kernels.
[openwrt/svn-archive/archive.git] / utils / input-utils / patches / 002-version-check.patch
1 From d99f056745e53cd2518ca169af474f8c45c1436d Mon Sep 17 00:00:00 2001
2 From: Gerd Hoffmann <kraxel@redhat.com>
3 Date: Wed, 26 Jan 2011 21:01:05 +0100
4 Subject: [PATCH] remove version check
5
6 ---
7 input.c | 11 -----------
8 1 files changed, 0 insertions(+), 11 deletions(-)
9
10 diff --git a/input.c b/input.c
11 index a9bd5e8..9a6a810 100644
12 --- a/input.c
13 +++ b/input.c
14 @@ -96,17 +96,6 @@ int device_open(int nr, int verbose)
15 if (verbose)
16 fprintf(stderr,"%s\n",filename);
17
18 - if (-1 == ioctl(fd,EVIOCGVERSION,&version)) {
19 - perror("ioctl EVIOCGVERSION");
20 - close(fd);
21 - return -1;
22 - }
23 - if (EV_VERSION > version) {
24 - fprintf(stderr, "protocol version mismatch (expected >= %d, got %d)\n",
25 - EV_VERSION, version);
26 - close(fd);
27 - return -1;
28 - }
29 return fd;
30 }
31
32 --
33 1.7.2.3
34