From: Greg Kroah-Hartman Date: Wed, 20 Oct 2010 22:55:36 +0000 (-0700) Subject: Staging: hv: remove VmbusGetChannelInfo X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee00966818584e8dbf7a5c7118c3b3cfebd6be14;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: hv: remove VmbusGetChannelInfo It's not needed, make the function pointer point to get_channel_info() instead. Cc: Haiyang Zhang Cc: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/vmbus.c b/drivers/staging/hv/vmbus.c index b385e6f6346b..6e13c1c976f1 100644 --- a/drivers/staging/hv/vmbus.c +++ b/drivers/staging/hv/vmbus.c @@ -60,15 +60,6 @@ static void VmbusGetChannelOffers(void) vmbus_request_offers(); } -/* - * VmbusGetChannelInfo - Get the device info for the specified device object - */ -static void VmbusGetChannelInfo(struct hv_device *DeviceObject, - struct hv_device_info *DeviceInfo) -{ - get_channel_info(DeviceObject, DeviceInfo); -} - /* * VmbusCreateChildDevice - Creates the child device on the bus that represents the channel offer */ @@ -271,7 +262,7 @@ int VmbusInitialize(struct hv_driver *drv) driver->OnMsgDpc = VmbusOnMsgDPC; driver->OnEventDpc = VmbusOnEventDPC; driver->GetChannelOffers = VmbusGetChannelOffers; - driver->GetChannelInfo = VmbusGetChannelInfo; + driver->GetChannelInfo = get_channel_info; /* Hypervisor initialization...setup hypercall page..etc */ ret = HvInit();