diff options
author | Sean Young <sean@mess.org> | 2006-12-06 20:27:32 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-20 10:13:22 -0800 |
commit | 6a7255e1df3cf8f89c2c0c6eeea866c6bb17cfb9 (patch) | |
tree | 258bcf7b90865d21d2ae716ed57ff796f9531179 /drivers/usb/misc | |
parent | f238085415c56618e042252894f2fcc971add645 (diff) | |
download | op-kernel-dev-6a7255e1df3cf8f89c2c0c6eeea866c6bb17cfb9.zip op-kernel-dev-6a7255e1df3cf8f89c2c0c6eeea866c6bb17cfb9.tar.gz |
USB: Fix oops in PhidgetServo
The PhidgetServo causes an Oops when any of its sysfs attributes are read
or written too, making the driver useless.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/phidgetservo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/misc/phidgetservo.c b/drivers/usb/misc/phidgetservo.c index 7163f05..0d9de2f 100644 --- a/drivers/usb/misc/phidgetservo.c +++ b/drivers/usb/misc/phidgetservo.c @@ -282,6 +282,7 @@ servo_probe(struct usb_interface *interface, const struct usb_device_id *id) dev->dev = NULL; goto out; } + dev_set_drvdata(dev->dev, dev); servo_count = dev->type & SERVO_COUNT_QUAD ? 4 : 1; |