summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorJack Steiner <steiner@sgi.com>2009-12-16 01:48:06 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-16 16:20:15 +0100
commitf2965d68b6775290218ff2a040e64c8b40556280 (patch)
tree69f058811c32d0aa69ffd2814dd45c6f2886201b /drivers/misc
parentgru: allow users to specify gru chiplet 3 (diff)
downloadlinux-f2965d68b6775290218ff2a040e64c8b40556280.tar.xz
linux-f2965d68b6775290218ff2a040e64c8b40556280.zip
gru: fix bug in module unload
Fix bug in module unload. Previous code was not correctly deleting the files in /proc. Signed-off-by: Jack Steiner <steiner@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/sgi-gru/gruprocfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/sgi-gru/gruprocfs.c b/drivers/misc/sgi-gru/gruprocfs.c
index a8a2e760cca3..4f6fc11a2637 100644
--- a/drivers/misc/sgi-gru/gruprocfs.c
+++ b/drivers/misc/sgi-gru/gruprocfs.c
@@ -351,7 +351,7 @@ static void delete_proc_files(void)
for (p = proc_files; p->name; p++)
if (p->entry)
remove_proc_entry(p->name, proc_gru);
- remove_proc_entry("gru", NULL);
+ remove_proc_entry("gru", proc_gru->parent);
}
}