You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] devfs: Remove devfs_remove() function from the kernel tree
Removes the devfs_remove() function and all callers of it. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -695,13 +695,10 @@ static void __exit pg_exit(void)
|
||||
|
||||
for (unit = 0; unit < PG_UNITS; unit++) {
|
||||
struct pg *dev = &devices[unit];
|
||||
if (dev->present) {
|
||||
if (dev->present)
|
||||
class_device_destroy(pg_class, MKDEV(major, unit));
|
||||
devfs_remove("pg/%u", unit);
|
||||
}
|
||||
}
|
||||
class_destroy(pg_class);
|
||||
devfs_remove("pg");
|
||||
unregister_chrdev(major, name);
|
||||
|
||||
for (unit = 0; unit < PG_UNITS; unit++) {
|
||||
|
||||
@@ -992,12 +992,9 @@ static void __exit pt_exit(void)
|
||||
for (unit = 0; unit < PT_UNITS; unit++)
|
||||
if (pt[unit].present) {
|
||||
class_device_destroy(pt_class, MKDEV(major, unit));
|
||||
devfs_remove("pt/%d", unit);
|
||||
class_device_destroy(pt_class, MKDEV(major, unit + 128));
|
||||
devfs_remove("pt/%dn", unit);
|
||||
}
|
||||
class_destroy(pt_class);
|
||||
devfs_remove("pt");
|
||||
unregister_chrdev(major, name);
|
||||
for (unit = 0; unit < PT_UNITS; unit++)
|
||||
if (pt[unit].present)
|
||||
|
||||
Reference in New Issue
Block a user