HID: switch to using input_dev->dev.parent
[safe/jmp/linux-2.6] / drivers / hid / usbhid / hid-core.c
index d06b9e7..d91b9da 100644 (file)
@@ -446,7 +446,7 @@ void usbhid_submit_report(struct hid_device *hid, struct hid_report *report, uns
 
 static int usb_hidinput_input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value)
 {
-       struct hid_device *hid = dev->private;
+       struct hid_device *hid = input_get_drvdata(dev);
        struct hid_field *field;
        int offset;