diff options
Diffstat (limited to 'drivers/usb/input/hid-ff.c')
-rw-r--r-- | drivers/usb/input/hid-ff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/input/hid-ff.c b/drivers/usb/input/hid-ff.c index 7ecdafa8eb7b..f8f660ee3fac 100644 --- a/drivers/usb/input/hid-ff.c +++ b/drivers/usb/input/hid-ff.c | |||
@@ -70,8 +70,8 @@ static struct hid_ff_initializer inits[] = { | |||
70 | int hid_ff_init(struct hid_device* hid) | 70 | int hid_ff_init(struct hid_device* hid) |
71 | { | 71 | { |
72 | struct hid_ff_initializer *init; | 72 | struct hid_ff_initializer *init; |
73 | int vendor = le16_to_cpu(hid->dev->descriptor.idVendor); | 73 | int vendor = le16_to_cpu(to_usb_device(hid->dev)->descriptor.idVendor); |
74 | int product = le16_to_cpu(hid->dev->descriptor.idProduct); | 74 | int product = le16_to_cpu(to_usb_device(hid->dev)->descriptor.idProduct); |
75 | 75 | ||
76 | for (init = inits; init->idVendor; init++) | 76 | for (init = inits; init->idVendor; init++) |
77 | if (init->idVendor == vendor && init->idProduct == product) | 77 | if (init->idVendor == vendor && init->idProduct == product) |