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;
};
/* 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);
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 */