diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-03-10 17:05:16 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-14 15:29:57 -0400 |
commit | 6de3d6aa9ad455726eb7b689e2d3e57d89374e55 (patch) | |
tree | 787dffa1f2f2a2e6498398ccd682cf658faa1833 | |
parent | 62c1059d6e20fe23e9e36cd1e79fafb778c86627 (diff) |
Staging: hv: Eliminate vmbus_event_dpc()
vmbus_event_dpc() was a wrapper function not adding any value;
get rid of it.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Mike Sterling <mike.sterling@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/hv/connection.c | 2 | ||||
-rw-r--r-- | drivers/staging/hv/vmbus_drv.c | 11 | ||||
-rw-r--r-- | drivers/staging/hv/vmbus_private.h | 2 |
3 files changed, 3 insertions, 12 deletions
diff --git a/drivers/staging/hv/connection.c b/drivers/staging/hv/connection.c index f7df47934cf9..fd589e381e31 100644 --- a/drivers/staging/hv/connection.c +++ b/drivers/staging/hv/connection.c | |||
@@ -285,7 +285,7 @@ static void process_chn_event(void *context) | |||
285 | /* | 285 | /* |
286 | * vmbus_on_event - Handler for events | 286 | * vmbus_on_event - Handler for events |
287 | */ | 287 | */ |
288 | void vmbus_on_event(void) | 288 | void vmbus_on_event(unsigned long data) |
289 | { | 289 | { |
290 | int dword; | 290 | int dword; |
291 | int maxdword = MAX_NUM_CHANNELS_SUPPORTED >> 5; | 291 | int maxdword = MAX_NUM_CHANNELS_SUPPORTED >> 5; |
diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index 7e679331f648..4b4483b2e18e 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c | |||
@@ -56,7 +56,6 @@ static int vmbus_probe(struct device *device); | |||
56 | static int vmbus_remove(struct device *device); | 56 | static int vmbus_remove(struct device *device); |
57 | static void vmbus_shutdown(struct device *device); | 57 | static void vmbus_shutdown(struct device *device); |
58 | static int vmbus_uevent(struct device *device, struct kobj_uevent_env *env); | 58 | static int vmbus_uevent(struct device *device, struct kobj_uevent_env *env); |
59 | static void vmbus_event_dpc(unsigned long data); | ||
60 | 59 | ||
61 | static irqreturn_t vmbus_isr(int irq, void *dev_id); | 60 | static irqreturn_t vmbus_isr(int irq, void *dev_id); |
62 | 61 | ||
@@ -485,7 +484,7 @@ static int vmbus_bus_init(void) | |||
485 | /* Initialize the bus context */ | 484 | /* Initialize the bus context */ |
486 | tasklet_init(&vmbus_drv_ctx->msg_dpc, vmbus_on_msg_dpc, | 485 | tasklet_init(&vmbus_drv_ctx->msg_dpc, vmbus_on_msg_dpc, |
487 | (unsigned long)NULL); | 486 | (unsigned long)NULL); |
488 | tasklet_init(&vmbus_drv_ctx->event_dpc, vmbus_event_dpc, | 487 | tasklet_init(&vmbus_drv_ctx->event_dpc, vmbus_on_event, |
489 | (unsigned long)NULL); | 488 | (unsigned long)NULL); |
490 | 489 | ||
491 | /* Now, register the bus with LDM */ | 490 | /* Now, register the bus with LDM */ |
@@ -985,14 +984,6 @@ static void vmbus_device_release(struct device *device) | |||
985 | } | 984 | } |
986 | 985 | ||
987 | 986 | ||
988 | /* | ||
989 | * vmbus_event_dpc - Tasklet routine to handle hypervisor events | ||
990 | */ | ||
991 | static void vmbus_event_dpc(unsigned long data) | ||
992 | { | ||
993 | /* Call to bus driver to handle interrupt */ | ||
994 | vmbus_on_event(); | ||
995 | } | ||
996 | 987 | ||
997 | static irqreturn_t vmbus_isr(int irq, void *dev_id) | 988 | static irqreturn_t vmbus_isr(int irq, void *dev_id) |
998 | { | 989 | { |
diff --git a/drivers/staging/hv/vmbus_private.h b/drivers/staging/hv/vmbus_private.h index 9f505c44c600..1b88b6f9be08 100644 --- a/drivers/staging/hv/vmbus_private.h +++ b/drivers/staging/hv/vmbus_private.h | |||
@@ -129,7 +129,7 @@ int vmbus_post_msg(void *buffer, size_t buflen); | |||
129 | 129 | ||
130 | int vmbus_set_event(u32 child_relid); | 130 | int vmbus_set_event(u32 child_relid); |
131 | 131 | ||
132 | void vmbus_on_event(void); | 132 | void vmbus_on_event(unsigned long data); |
133 | 133 | ||
134 | 134 | ||
135 | #endif /* _VMBUS_PRIVATE_H_ */ | 135 | #endif /* _VMBUS_PRIVATE_H_ */ |