summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/storvsc_drv.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2009-09-02 20:53:59 +0200
committerGreg Kroah-Hartman2009-09-15 21:02:03 +0200
commit21707bed7e0577c32546e8e0ce74a18528acf398 (patch)
treeb0fee195b741e7efd57ad73f74d1da7a3404576e /drivers/staging/hv/storvsc_drv.c
parentStaging: hv: remove PFN_CHANNEL_CALLBACK (diff)
downloadkernel-qcow2-linux-21707bed7e0577c32546e8e0ce74a18528acf398.tar.gz
kernel-qcow2-linux-21707bed7e0577c32546e8e0ce74a18528acf398.tar.xz
kernel-qcow2-linux-21707bed7e0577c32546e8e0ce74a18528acf398.zip
Staging: hv: remove function pointer typedefs from vmbus.h
It's amazing the hoops that people go through to make code work when they don't opensource the whole thing. Passing these types of function pointers around for no good reason is a mess, this needs to be unwound as everything is now in the open. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/storvsc_drv.c')
-rw-r--r--drivers/staging/hv/storvsc_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c
index ba15f54a315c..d49dc21d4cb4 100644
--- a/drivers/staging/hv/storvsc_drv.c
+++ b/drivers/staging/hv/storvsc_drv.c
@@ -137,7 +137,7 @@ static struct scsi_host_template scsi_driver = {
/**
* storvsc_drv_init - StorVsc driver initialization.
*/
-static int storvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init)
+static int storvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
{
int ret;
struct storvsc_driver_object *storvsc_drv_obj = &g_storvsc_drv.drv_obj;
@@ -151,7 +151,7 @@ static int storvsc_drv_init(PFN_DRIVERINITIALIZE pfn_drv_init)
storvsc_drv_obj->OnHostRescan = storvsc_host_rescan;
/* Callback to client driver to complete the initialization */
- pfn_drv_init(&storvsc_drv_obj->Base);
+ drv_init(&storvsc_drv_obj->Base);
DPRINT_INFO(STORVSC_DRV,
"request extension size %u, max outstanding reqs %u",