diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-09-16 22:21:52 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-09-16 22:21:52 +0000 |
commit | 611b3a497eaeb43299853852ac3a9f1ad6039531 (patch) | |
tree | 629d5d6293fd8f790a153e9a367e31733edaaaa8 /sys-apps/rlocate/files | |
parent | ppc stable (diff) | |
download | historical-611b3a497eaeb43299853852ac3a9f1ad6039531.tar.gz historical-611b3a497eaeb43299853852ac3a9f1ad6039531.tar.bz2 historical-611b3a497eaeb43299853852ac3a9f1ad6039531.zip |
Clean out devfs #140848 by CBke.
Package-Manager: portage-2.1.1
Diffstat (limited to 'sys-apps/rlocate/files')
-rw-r--r-- | sys-apps/rlocate/files/rlocate-0.5.2-no-devfs.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-apps/rlocate/files/rlocate-0.5.2-no-devfs.patch b/sys-apps/rlocate/files/rlocate-0.5.2-no-devfs.patch new file mode 100644 index 000000000000..62bb6c117ecd --- /dev/null +++ b/sys-apps/rlocate/files/rlocate-0.5.2-no-devfs.patch @@ -0,0 +1,27 @@ +--- src/rlocate-module/rlocate.c ++++ src/rlocate-module/rlocate.c +@@ -42,7 +42,6 @@ + #include <linux/rwsem.h> + #include <linux/spinlock.h> + #include <linux/device.h> +-#include <linux/devfs_fs_kernel.h> + #include <linux/namei.h> + #include <linux/jiffies.h> + +@@ -673,8 +672,6 @@ + } + class_device_create(rlocate_class, NULL, MKDEV(Major, 0), NULL, + DEVICE_NAME); +- // devfs +- devfs_mk_cdev(MKDEV(Major, 0), S_IFCHR|S_IRUSR|S_IWUSR, DEVICE_NAME); + goto out; + + no_simple_class: +@@ -688,7 +685,6 @@ + */ + void rlocate_dev_unregister(void) + { +- devfs_remove(DEVICE_NAME); + class_device_destroy(rlocate_class, MKDEV(Major, 0)); + class_destroy(rlocate_class); + unregister_chrdev(Major, DEVICE_NAME); |