/* Provide an 'ungroup' attribute so the user can remove group devices no longer needed or accidentially created. Saves memory :)  */
static void ccwgroup_ungroup_callback(struct device *dev)
/* Provide an 'ungroup' attribute so the user can remove group devices no longer needed or accidentially created. Saves memory :)  */
static void ccwgroup_ungroup_callback(struct device *dev)
{
	struct ccwgroup_device *gdev = to_ccwgroupdev(dev);
	mutex_lock(&gdev->reg_mutex);
	if (device_is_registered(&gdev->dev)) {
		__ccwgroup_remove_symlinks(gdev);
		device_unregister(dev);
	}
	mutex_unlock(&gdev->reg_mutex);
}