/* match_device - Report whether this driver can handle this device @driver: the PA-RISC driver to try @dev: the PA-RISC device to try  */
static int match_device(struct parisc_driver *driver, struct parisc_device *dev)
/* match_device - Report whether this driver can handle this device @driver: the PA-RISC driver to try @dev: the PA-RISC device to try  */
static int match_device(struct parisc_driver *driver, struct parisc_device *dev)
{
	const struct parisc_device_id *ids;
	for (ids = driver->id_table; ids->sversion; ids++) {
		if ((ids->sversion != SVERSION_ANY_ID) &&
		    (ids->sversion != dev->id.sversion))
			continue;
		if ((ids->hw_type != HWTYPE_ANY_ID) &&
		    (ids->hw_type != dev->id.hw_type))
			continue;
		if ((ids->hversion != HVERSION_ANY_ID) &&
		    (ids->hversion != dev->id.hversion))
			continue;
		return 1;
	}
	return 0;
}