|
@@ -986,6 +986,8 @@ int device_add(struct device *dev)
|
|
|
AttrsError:
|
|
AttrsError:
|
|
|
device_remove_class_symlinks(dev);
|
|
device_remove_class_symlinks(dev);
|
|
|
SymlinkError:
|
|
SymlinkError:
|
|
|
|
|
+ if (MAJOR(dev->devt))
|
|
|
|
|
+ devtmpfs_delete_node(dev);
|
|
|
if (MAJOR(dev->devt))
|
|
if (MAJOR(dev->devt))
|
|
|
device_remove_sys_dev_entry(dev);
|
|
device_remove_sys_dev_entry(dev);
|
|
|
devtattrError:
|
|
devtattrError:
|