Staging: hv: Make msg_dpc a stand alone variable
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 29 Apr 2011 20:45:06 +0000 (13:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 20:31:27 +0000 (13:31 -0700)
In preparation for cleaning up (getting rid of) of the hv_bus structure,
make msg_dpc a stand alone variable.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@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>
drivers/staging/hv/vmbus_drv.c

index 4106dd321faff3552a97da2f2be68e07d80e60d5..38bfff044dfb8adc633a1d80cb6f6c8deddde5b0 100644 (file)
 
 static struct pci_dev *hv_pci_dev;
 
+static struct tasklet_struct msg_dpc;
+
 /* Main vmbus driver data structure */
 struct hv_bus {
        struct bus_type bus;
-       struct tasklet_struct msg_dpc;
        struct tasklet_struct event_dpc;
 };
 
@@ -515,7 +516,7 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id)
        /* Schedules a dpc if necessary */
        if (ret > 0) {
                if (test_bit(0, (unsigned long *)&ret))
-                       tasklet_schedule(&hv_bus.msg_dpc);
+                       tasklet_schedule(&msg_dpc);
 
                if (test_bit(1, (unsigned long *)&ret))
                        tasklet_schedule(&hv_bus.event_dpc);
@@ -550,7 +551,7 @@ static int vmbus_bus_init(struct pci_dev *pdev)
        hv_bus.bus.name = driver_name;
 
        /* Initialize the bus context */
-       tasklet_init(&hv_bus.msg_dpc, vmbus_on_msg_dpc, 0);
+       tasklet_init(&msg_dpc, vmbus_on_msg_dpc, 0);
        tasklet_init(&hv_bus.event_dpc, vmbus_on_event, 0);
 
        /* Now, register the bus  with LDM */