Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c74c120a authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files

proc: remove proc_root from drivers



Remove proc_root export.  Creation and removal works well if parent PDE is
supplied as NULL -- it worked always that way.

So, one useless export removed and consistency added, some drivers created
PDEs with &proc_root as parent but removed them as NULL and so on.

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 928b4d8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ create_proc_entries(void)
{
	struct proc_dir_entry* tags_entry;

	tags_entry = create_proc_read_entry("atags", 0400, &proc_root, read_buffer, &tags_buffer);
	tags_entry = create_proc_read_entry("atags", 0400, NULL, read_buffer, &tags_buffer);
	if (!tags_entry)
		return -ENOMEM;

+1 −1
Original line number Diff line number Diff line
@@ -302,7 +302,7 @@ void __init iop_init(void)

#if 0	/* Crashing in 2.4 now, not yet sure why.   --jmt */
#ifdef CONFIG_PROC_FS
	create_proc_info_entry("mac_iop", 0, &proc_root, iop_get_proc_info);
	create_proc_info_entry("mac_iop", 0, NULL, iop_get_proc_info);
#endif
#endif
}
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ excite_bootrom_read(char *page, char **start, off_t off, int count,
void excite_procfs_init(void)
{
	/* Create & populate /proc/excite */
	struct proc_dir_entry * const pdir = proc_mkdir("excite", &proc_root);
	struct proc_dir_entry * const pdir = proc_mkdir("excite", NULL);
	if (pdir) {
		struct proc_dir_entry * e;

+1 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ static int make_proc_exitcode(void)
{
	struct proc_dir_entry *ent;

	ent = create_proc_entry("exitcode", 0600, &proc_root);
	ent = create_proc_entry("exitcode", 0600, NULL);
	if (ent == NULL) {
		printk(KERN_WARNING "make_proc_exitcode : Failed to register "
		       "/proc/exitcode\n");
+1 −1
Original line number Diff line number Diff line
@@ -364,7 +364,7 @@ int __init make_proc_sysemu(void)
	if (!sysemu_supported)
		return 0;

	ent = create_proc_entry("sysemu", 0600, &proc_root);
	ent = create_proc_entry("sysemu", 0600, NULL);

	if (ent == NULL)
	{
Loading