[PATCH] USB: fix AIPTEK input doesn`t register `device` & `driver` section in sysfs...
authorViktor A. Danilov <__die@mail.ru>
Tue, 19 Apr 2005 00:39:35 +0000 (17:39 -0700)
committerGreg K-H <gregkh@suse.de>
Tue, 19 Apr 2005 00:39:35 +0000 (17:39 -0700)
commite838a0d4d5260bce452c96914a6e86b217c53c55
treebafe9c348e895fa62874564deea245db4e42da2f
parent6cdee106e7571751ecc0e9f96606322f88b64a8d
[PATCH] USB: fix AIPTEK input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)

PROBLEM: aiptek input doesn`t register `device` & `driver` section in sysfs (/sys/class/input/event#)
REASON: `dev` - field not filled...
SOLUTION: in linux/drivers/usb/input/aiptek.c write
aiptek->inputdev.dev = &intf->dev;
before calling
input_register_device(&aiptek->inputdev);

From: "Viktor A. Danilov" <__die@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Index: gregkh-2.6/drivers/usb/input/aiptek.c
===================================================================
drivers/usb/input/aiptek.c