diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-09-29 18:55:02 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-04 17:39:38 (GMT) |
commit | 929ad795f0a8d3419ea19c76d7c13ebb96c49286 (patch) | |
tree | a79bfa445b99b6a9abe20d787ddb8b6666ae710d /drivers/staging/hv | |
parent | 6e56f27c09ec695fd0091476772e38fe9ccaa5a9 (diff) | |
download | linux-929ad795f0a8d3419ea19c76d7c13ebb96c49286.tar.xz |
Staging: hv: mousevsc: Cleanup mousevsc_on_device_add()
Cleanup mousevsc_on_device_add().
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv')
-rw-r--r-- | drivers/staging/hv/hv_mouse.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c index a526ba5..98ae062 100644 --- a/drivers/staging/hv/hv_mouse.c +++ b/drivers/staging/hv/hv_mouse.c @@ -513,12 +513,10 @@ static void reportdesc_callback(struct hv_device *dev, void *packet, u32 len) input_device->hid_device = hid_dev; } -static int mousevsc_on_device_add(struct hv_device *device, - void *additional_info) +static int mousevsc_on_device_add(struct hv_device *device) { int ret = 0; struct mousevsc_dev *input_dev; - struct hv_driver *input_drv; input_dev = alloc_input_device(device); @@ -551,9 +549,6 @@ static int mousevsc_on_device_add(struct hv_device *device, return ret; } - input_drv = drv_to_hv_drv(input_dev->device->device.driver); - - /* Send the report desc back up */ /* workaround SA-167 */ @@ -573,7 +568,7 @@ static int mousevsc_probe(struct hv_device *dev, { /* Call to the vsc driver to add the device */ - return mousevsc_on_device_add(dev, NULL); + return mousevsc_on_device_add(dev); } |