diff options
| -rw-r--r-- | drivers/hid/hid-hyperv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c index 032e6c079826..3d62781b8993 100644 --- a/drivers/hid/hid-hyperv.c +++ b/drivers/hid/hid-hyperv.c | |||
| @@ -516,11 +516,12 @@ static int mousevsc_probe(struct hv_device *device, | |||
| 516 | 516 | ||
| 517 | sprintf(hid_dev->name, "%s", "Microsoft Vmbus HID-compliant Mouse"); | 517 | sprintf(hid_dev->name, "%s", "Microsoft Vmbus HID-compliant Mouse"); |
| 518 | 518 | ||
| 519 | hid_set_drvdata(hid_dev, device); | ||
| 520 | |||
| 519 | ret = hid_add_device(hid_dev); | 521 | ret = hid_add_device(hid_dev); |
| 520 | if (ret) | 522 | if (ret) |
| 521 | goto probe_err1; | 523 | goto probe_err1; |
| 522 | 524 | ||
| 523 | hid_set_drvdata(hid_dev, device); | ||
| 524 | 525 | ||
| 525 | ret = hid_parse(hid_dev); | 526 | ret = hid_parse(hid_dev); |
| 526 | if (ret) { | 527 | if (ret) { |
