/* Each I2O controller has a chain of devices on it - these match the useful parts of the LCT of the board.  */
static int adpt_i2o_install_device(adpt_hba *pHba, struct i2o_device *d)
/* Each I2O controller has a chain of devices on it - these match the useful parts of the LCT of the board.  */
static int adpt_i2o_install_device(adpt_hba *pHba, struct i2o_device *d)
{
	mutex_lock(&adpt_configuration_lock);
	d->controller=pHba;
	d->owner=NULL;
	d->next=pHba->devices;
	d->prev=NULL;
	if (pHba->devices != NULL){
		pHba->devices->prev=d;
	}
	pHba->devices=d;
	*d->dev_name = 0;
	mutex_unlock(&adpt_configuration_lock);
	return 0;
}