From 466cdc050a74215349cfde8dc34624661710fe42 Mon Sep 17 00:00:00 2001 From: "K. Y. Srinivasan" Date: Thu, 12 May 2011 19:34:44 -0700 Subject: [PATCH] --- yaml --- r: 249672 b: refs/heads/master c: 8553d753a494dfd952d7e44ab6f1171839b6185d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/staging/hv/blkvsc_drv.c | 33 +-------------------------- 2 files changed, 2 insertions(+), 33 deletions(-) diff --git a/[refs] b/[refs] index 582c4e11660a..715775804e51 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 459bce97655c8ca19b113efce98be0dd8d800652 +refs/heads/master: 8553d753a494dfd952d7e44ab6f1171839b6185d diff --git a/trunk/drivers/staging/hv/blkvsc_drv.c b/trunk/drivers/staging/hv/blkvsc_drv.c index 3c1637f2c27d..46daade7a9e2 100644 --- a/trunk/drivers/staging/hv/blkvsc_drv.c +++ b/trunk/drivers/staging/hv/blkvsc_drv.c @@ -833,42 +833,11 @@ static int blkvsc_drv_init(void) return ret; } -static int blkvsc_drv_exit_cb(struct device *dev, void *data) -{ - struct device **curr = (struct device **)data; - *curr = dev; - return 1; /* stop iterating */ -} static void blkvsc_drv_exit(void) { - struct hv_driver *drv = &blkvsc_drv; - struct device *current_dev; - int ret; - - while (1) { - current_dev = NULL; - - /* Get the device */ - ret = driver_for_each_device(&drv->driver, NULL, - (void *) ¤t_dev, - blkvsc_drv_exit_cb); - - if (ret) - DPRINT_WARN(BLKVSC_DRV, - "driver_for_each_device returned %d", ret); - - - if (current_dev == NULL) - break; - - /* Initiate removal from the top-down */ - device_unregister(current_dev); - } - - vmbus_child_driver_unregister(&drv->driver); - return; + vmbus_child_driver_unregister(&blkvsc_drv.driver); } /*