]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: hv: Use generic device_driver remove function
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 7 Mar 2011 21:21:47 +0000 (13:21 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Mar 2011 22:14:10 +0000 (14:14 -0800)
In preparation for moving all the state from struct driver_context
to struct hv_driver, eliminate the remove() function from
struct driver_context and use generic device_driver remove()
function.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/blkvsc_drv.c
drivers/staging/hv/hv_mouse.c
drivers/staging/hv/netvsc_drv.c
drivers/staging/hv/storvsc_drv.c
drivers/staging/hv/vmbus_drv.c

index 0dff55791d26fc8666129c32ebc92f3db5a34327..3e86a560074e6c65f032ac568a81894a30e5b638 100644 (file)
@@ -187,7 +187,7 @@ static int blkvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
               sizeof(struct hv_guid));
 
        drv_ctx->driver.probe = blkvsc_probe;
-       drv_ctx->remove = blkvsc_remove;
+       drv_ctx->driver.remove = blkvsc_remove;
        drv_ctx->shutdown = blkvsc_shutdown;
 
        /* The driver belongs to vmbus */
index 4a25f3b8770daa67eaf87128aed0476c231e75fc..6e2a937df4e3055a81dc2c54251d7a64c6621a43 100644 (file)
@@ -1022,7 +1022,7 @@ static int __init mousevsc_init(void)
               sizeof(struct hv_guid));
 
        drv_ctx->driver.probe = mousevsc_probe;
-       drv_ctx->remove = mousevsc_remove;
+       drv_ctx->driver.remove = mousevsc_remove;
 
        /* The driver belongs to vmbus */
        vmbus_child_driver_register(drv_ctx);
index 083f0d34859892937363a1f7cd500ccbc5a75357..e2013b5e3487ff1886ea7a5edf3d180129b289a2 100644 (file)
@@ -512,7 +512,7 @@ static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
               sizeof(struct hv_guid));
 
        drv_ctx->driver.probe = netvsc_probe;
-       drv_ctx->remove = netvsc_remove;
+       drv_ctx->driver.remove = netvsc_remove;
 
        /* The driver belongs to vmbus */
        ret = vmbus_child_driver_register(drv_ctx);
index 3fe4bdb4ec927d568ed59b17081dcf2e1b3aa32f..3855271bda1e5459a25c4cf305f87f45d32afefe 100644 (file)
@@ -165,7 +165,7 @@ static int storvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
               sizeof(struct hv_guid));
 
        drv_ctx->driver.probe = storvsc_probe;
-       drv_ctx->remove = storvsc_remove;
+       drv_ctx->driver.remove = storvsc_remove;
 
        /* The driver belongs to vmbus */
        ret = vmbus_child_driver_register(drv_ctx);
index fee2a8f9b4e48f8d9bd4fc2c3e4993284aa70876..4df2be04fd149b867f40c49d2096183b7460b3c8 100644 (file)
@@ -964,8 +964,8 @@ static int vmbus_remove(struct device *child_device)
                 * Let the specific open-source driver handles the removal if
                 * it can
                 */
-               if (driver_ctx->remove) {
-                       ret = driver_ctx->remove(child_device);
+               if (driver_ctx->driver.remove) {
+                       ret = driver_ctx->driver.remove(child_device);
                } else {
                        DPRINT_ERR(VMBUS_DRV,
                                   "remove() method not set for driver - %s",