/* if device has been registered for the given port and unit then return 1 - allows identification of which devices need to be attached or detached  */
static int check_maple_device(struct device *device, void *portptr)
/* if device has been registered for the given port and unit then return 1 - allows identification of which devices need to be attached or detached  */
static int check_maple_device(struct device *device, void *portptr)
{
	struct maple_device_specify *ds;
	struct maple_device *mdev;
	ds = portptr;
	mdev = to_maple_dev(device);
	if (mdev->port == ds->port && mdev->unit == ds->unit)
		return 1;
	return 0;
}