diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-02 09:16:04 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-02 09:16:04 -0800 |
commit | 98293a279cc0ff085ead7c032c6b8cb7b6ad7e88 (patch) | |
tree | da75e17bef2ec934ab7a9fb1f4d0b980b472b730 /drivers/staging/hv/vmbus.c | |
parent | 2d6e882bada0ca7828347647c5b1091bf5f18fee (diff) | |
download | linux-stable-98293a279cc0ff085ead7c032c6b8cb7b6ad7e88.tar.gz linux-stable-98293a279cc0ff085ead7c032c6b8cb7b6ad7e88.tar.bz2 linux-stable-98293a279cc0ff085ead7c032c6b8cb7b6ad7e88.zip |
Staging: hv: remove OnChildDeviceAdd vmbus_driver callback
It's only ever set to one function, so just call that function instead.
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/vmbus.c')
-rw-r--r-- | drivers/staging/hv/vmbus.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/hv/vmbus.c b/drivers/staging/hv/vmbus.c index ae9e298f5c85..7a7454ce8cad 100644 --- a/drivers/staging/hv/vmbus.c +++ b/drivers/staging/hv/vmbus.c @@ -57,9 +57,7 @@ static struct hv_device *gDevice; /* vmbus root device */ */ int VmbusChildDeviceAdd(struct hv_device *ChildDevice) { - struct vmbus_driver *vmbusDriver = (struct vmbus_driver *)gDriver; - - return vmbusDriver->OnChildDeviceAdd(gDevice, ChildDevice); + return vmbus_child_device_register(gDevice, ChildDevice); } /* |