/* Such detection looks very ugly, but can detect at least some of numerous PnP modems, alternatively we must hardcode all modems in pnp_devices table.  */
static int __devinit serial_pnp_guess_board(struct pnp_dev *dev, int *flags)
/* Such detection looks very ugly, but can detect at least some of numerous PnP modems, alternatively we must hardcode all modems in pnp_devices table.  */
static int __devinit serial_pnp_guess_board(struct pnp_dev *dev, int *flags)
{
	if (!(check_name(pnp_dev_name(dev)) ||
		(dev->card && check_name(dev->card->name))))
			return -ENODEV;
	if (check_resources(dev))
		return 0;
	return -ENODEV;
}