From: K. Y. Srinivasan Date: Tue, 10 May 2011 14:53:56 +0000 (-0700) Subject: Staging: hv: blkvsc_drv: Get rid of the indirection for invoking device_add X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0d44f5bf09d18ee8953853c052069d214dd2e182;p=openwrt%2Fstaging%2Fblogic.git Staging: hv: blkvsc_drv: Get rid of the indirection for invoking device_add Get rid of the indirection for invoking device_add. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Abhishek Kane Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c index 0005e3360be2..68cdbaf45142 100644 --- a/drivers/staging/hv/blkvsc_drv.c +++ b/drivers/staging/hv/blkvsc_drv.c @@ -197,7 +197,6 @@ static int blk_vsc_initialize(struct hv_driver *driver) stor_driver->max_outstanding_req_per_channel); /* Setup the dispatch table */ - stor_driver->base.dev_add = blkvsc_device_add; stor_driver->base.dev_rm = stor_vsc_on_device_remove; stor_driver->base.cleanup = stor_vsc_on_cleanup; stor_driver->on_io_request = stor_vsc_on_io_request; @@ -964,8 +963,7 @@ static int blkvsc_probe(struct hv_device *dev) } - /* Call to the vsc driver to add the device */ - ret = storvsc_drv->base.dev_add(dev, &device_info); + ret = blkvsc_device_add(dev, &device_info); if (ret != 0) goto cleanup;