Commit 097e3103 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: hv: remove OnIsr 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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9d8bd71a
...@@ -175,9 +175,9 @@ static void VmbusOnEventDPC(struct hv_driver *drv) ...@@ -175,9 +175,9 @@ static void VmbusOnEventDPC(struct hv_driver *drv)
} }
/* /*
* VmbusOnISR - ISR routine * vmbus_on_isr - ISR routine
*/ */
static int VmbusOnISR(struct hv_driver *drv) int vmbus_on_isr(struct hv_driver *drv)
{ {
int ret = 0; int ret = 0;
int cpu = smp_processor_id(); int cpu = smp_processor_id();
...@@ -235,7 +235,6 @@ int VmbusInitialize(struct hv_driver *drv) ...@@ -235,7 +235,6 @@ int VmbusInitialize(struct hv_driver *drv)
driver->Base.OnDeviceAdd = VmbusOnDeviceAdd; driver->Base.OnDeviceAdd = VmbusOnDeviceAdd;
driver->Base.OnDeviceRemove = VmbusOnDeviceRemove; driver->Base.OnDeviceRemove = VmbusOnDeviceRemove;
driver->Base.OnCleanup = VmbusOnCleanup; driver->Base.OnCleanup = VmbusOnCleanup;
driver->OnIsr = VmbusOnISR;
driver->OnMsgDpc = VmbusOnMsgDPC; driver->OnMsgDpc = VmbusOnMsgDPC;
driver->OnEventDpc = VmbusOnEventDPC; driver->OnEventDpc = VmbusOnEventDPC;
driver->GetChannelOffers = VmbusGetChannelOffers; driver->GetChannelOffers = VmbusGetChannelOffers;
......
...@@ -126,12 +126,12 @@ struct vmbus_driver { ...@@ -126,12 +126,12 @@ struct vmbus_driver {
struct hv_device *ChildDevice); struct hv_device *ChildDevice);
/* Set by the callee */ /* Set by the callee */
int (*OnIsr)(struct hv_driver *driver);
void (*OnMsgDpc)(struct hv_driver *driver); void (*OnMsgDpc)(struct hv_driver *driver);
void (*OnEventDpc)(struct hv_driver *driver); void (*OnEventDpc)(struct hv_driver *driver);
void (*GetChannelOffers)(void); void (*GetChannelOffers)(void);
}; };
int VmbusInitialize(struct hv_driver *drv); int VmbusInitialize(struct hv_driver *drv);
int vmbus_on_isr(struct hv_driver *drv);
#endif /* _VMBUS_API_H_ */ #endif /* _VMBUS_API_H_ */
...@@ -873,10 +873,8 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id) ...@@ -873,10 +873,8 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id)
struct vmbus_driver *vmbus_driver_obj = &g_vmbus_drv.drv_obj; struct vmbus_driver *vmbus_driver_obj = &g_vmbus_drv.drv_obj;
int ret; int ret;
/* ASSERT(vmbus_driver_obj->OnIsr != NULL); */
/* Call to bus driver to handle interrupt */ /* Call to bus driver to handle interrupt */
ret = vmbus_driver_obj->OnIsr(&vmbus_driver_obj->Base); ret = vmbus_on_isr(&vmbus_driver_obj->Base);
/* Schedules a dpc if necessary */ /* Schedules a dpc if necessary */
if (ret > 0) { if (ret > 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment