/* Used by a driver to check whether a Zorro device present in the system is in its list of supported devices.Returns the matching zorro_device_id structure or NULL if there is no match.  */
static int zorro_bus_match(struct device *dev, struct device_driver *drv)
/* Used by a driver to check whether a Zorro device present in the system is in its list of supported devices.Returns the matching zorro_device_id structure or NULL if there is no match.  */
static int zorro_bus_match(struct device *dev, struct device_driver *drv)
{
	struct zorro_dev *z = to_zorro_dev(dev);
	struct zorro_driver *zorro_drv = to_zorro_driver(drv);
	const struct zorro_device_id *ids = zorro_drv->id_table;
	if (!ids)
		return 0;
	while (ids->id) {
		if (ids->id == ZORRO_WILDCARD || ids->id == z->id)
			return 1;
		ids++;
	}
	return 0;
}