/* Returns 1 if the class ids of the driver match the class id of the device, otherwise 0.  */
static int i2o_bus_match(struct device *dev, struct device_driver *drv)
/* Returns 1 if the class ids of the driver match the class id of the device, otherwise 0.  */
static int i2o_bus_match(struct device *dev, struct device_driver *drv)
{
	struct i2o_device *i2o_dev = to_i2o_device(dev);
	struct i2o_driver *i2o_drv = to_i2o_driver(drv);
	struct i2o_class_id *ids = i2o_drv->classes;
	if (ids)
		while (ids->class_id != I2O_CLASS_END) {
			if (ids->class_id == i2o_dev->lct_data.class_id)
				return 1;
			ids++;
		}
	return 0;
}