/* This function unregisters and cleans up a device that was created by root_device_register().  */
void root_device_unregister(struct device *dev)
/* This function unregisters and cleans up a device that was created by root_device_register().  */
void root_device_unregister(struct device *dev)
{
	struct root_device *root = to_root_device(dev);
	if (root->owner)
		sysfs_remove_link(&root->dev.kobj, "module");
	device_unregister(dev);
}