summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2011-05-10 14:55:09 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-11 20:48:52 (GMT)
commitbe3c8195311bcd9c37bef05763da9a78cf52063b (patch)
treea687cf1bc62c55a9062707df9d240975ef113f64
parentb51f88a1a1e9a191f227964785d6db52f5ee2529 (diff)
downloadlinux-fsl-qoriq-be3c8195311bcd9c37bef05763da9a78cf52063b.tar.xz
Staging: hv: Cleanup mouse_vsc_initialize()
Now that we have gotten rid of the indirection, cleanup mouse_vsc_initialize(). Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Abhishek Kane <v-abkane@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/hv/hv_mouse.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c
index 41bfa3f..523c428 100644
--- a/drivers/staging/hv/hv_mouse.c
+++ b/drivers/staging/hv/hv_mouse.c
@@ -980,19 +980,11 @@ static void mousevsc_drv_exit(void)
static int mouse_vsc_initialize(struct hv_driver *driver)
{
- struct mousevsc_drv_obj *input_drv =
- (struct mousevsc_drv_obj *)driver;
- int ret = 0;
-
driver->name = driver_name;
memcpy(&driver->dev_type, &mouse_guid,
sizeof(struct hv_guid));
- /* Setup the dispatch table */
- input_drv->base.dev_add = mousevsc_on_device_add;
- input_drv->base.dev_rm = mousevsc_on_device_remove;
-
- return ret;
+ return 0;
}