/* Used by a driver to check whether a RIO device present in the system is in its list of supported devices. Returns 1 if there is a matching &struct rio_device_id or 0 if there is no match.  */
static int rio_match_bus(struct device *dev, struct device_driver *drv)
/* Used by a driver to check whether a RIO device present in the system is in its list of supported devices. Returns 1 if there is a matching &struct rio_device_id or 0 if there is no match.  */
static int rio_match_bus(struct device *dev, struct device_driver *drv)
{
	struct rio_dev *rdev = to_rio_dev(dev);
	struct rio_driver *rdrv = to_rio_driver(drv);
	const struct rio_device_id *id = rdrv->id_table;
	const struct rio_device_id *found_id;
	if (!id)
		goto out;
	found_id = rio_match_device(id, rdev);
	if (found_id)
		return 1;
      out:return 0;
}