u32 rc; 
int rc; 
static u32 remove_board(struct slot *p_slot){	u8 device;	u8 hp_slot;	u32 rc;	struct controller *ctrl = p_slot->ctrl;	if (pciehp_unconfigure_device(p_slot))		return 1;	device = p_slot->device;	hp_slot = p_slot->device - ctrl->slot_device_offset;	p_slot = pciehp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset);	dbg("In %s, hp_slot = %d\n", __FUNCTION__, hp_slot);	/* Change status to shutdown */	if (p_slot->is_a_board)		p_slot->status = 0x01;	p_slot->configured = 0;	/* Wait for exclusive access to hardware */	down(&ctrl->crit_sect);	if (POWER_CTRL(ctrl->ctrlcap)) {		/* power off slot */		rc = p_slot->hpc_ops->power_off_slot(p_slot);		if (rc) {			err("%s: Issue of Slot Disable command failed\n", __FUNCTION__);			up(&ctrl->crit_sect);			return rc;		}		/* Wait for the command to complete */		wait_for_ctrl_irq (ctrl);	}	if (PWR_LED(ctrl->ctrlcap)) {		/* turn off Green LED */		p_slot->hpc_ops->green_led_off(p_slot);			/* Wait for the command to complete */		wait_for_ctrl_irq (ctrl);	}	/* Done with exclusive hardware access */	up(&ctrl->crit_sect);	p_slot->switch_save = 0x10;	p_slot->is_a_board = 0;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/ed6cbcf2ac706aa47194fd2f7a99865cc06833d7/pciehp_ctrl.c/buggy/drivers/pci/hotplug/pciehp_ctrl.c