/* Returns a pointer to the I2O device if found, otherwise NULL.  */
struct i2o_device* i2o_iop_find_device(struct i2o_controller *c, u16 tid)
/* Returns a pointer to the I2O device if found, otherwise NULL.  */
struct i2o_device* i2o_iop_find_device(struct i2o_controller *c, u16 tid)
{
	struct i2o_device *dev;
	list_for_each_entry(dev, &c->devices, list)
	    if (dev->lct_data.tid == tid)
		return dev;
	return NULL;
}