if(controller->irq) { if(request_irq(controller->irq, cpci_hp_intr, controller->irq_flags, MY_NAME, controller->dev_id)) { err("Can't get irq %d for the hotplug cPCI controller", controller->irq); status = -ENODEV; } dbg("%s - acquired controller irq %d", __FUNCTION__, controller->irq); } } else { err("cPCI hotplug controller already registered"); status = -1; }
cpci_hp_register_controller(struct cpci_hp_controller *new_controller){	int status = 0;	if(!controller) {		controller = new_controller;		if(controller->irq) {			if(request_irq(controller->irq,					cpci_hp_intr,					controller->irq_flags,					MY_NAME, controller->dev_id)) {				err("Can't get irq %d for the hotplug cPCI controller", controller->irq);				status = -ENODEV;			}			dbg("%s - acquired controller irq %d", __FUNCTION__,			    controller->irq);		}	} else {		err("cPCI hotplug controller already registered");		status = -1;	}	return status;}