- slot->hotplug_slot = kzalloc(sizeof(*(slot->hotplug_slot)),
+ memset(slot, 0, sizeof(struct slot));
+ slot->hotplug_slot = kmalloc(sizeof(*(slot->hotplug_slot)),
amber_LED_off (ctrl, hp_slot);
} else {
// Done with exclusive hardware access
amber_LED_off (ctrl, hp_slot);
} else {
// Done with exclusive hardware access
dbg("bus device function rev: %d %d %d %d\n", ctrl->bus,
PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), ctrl->rev);
dbg("bus device function rev: %d %d %d %d\n", ctrl->bus,
PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), ctrl->rev);
init_waitqueue_head(&ctrl->queue);
/* initialize our threads if they haven't already been started up */
init_waitqueue_head(&ctrl->queue);
/* initialize our threads if they haven't already been started up */
// turn off empty slots here unless command line option "ON" set
// Wait for exclusive access to hardware
// turn off empty slots here unless command line option "ON" set
// Wait for exclusive access to hardware