aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-gru
diff options
context:
space:
mode:
authorJack Steiner <steiner@sgi.com>2009-12-15 19:48:06 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-16 10:20:15 -0500
commitf2965d68b6775290218ff2a040e64c8b40556280 (patch)
tree69f058811c32d0aa69ffd2814dd45c6f2886201b /drivers/misc/sgi-gru
parent99f7c229b32bdf7424fbeb1d0d1b3883e14e97d0 (diff)
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/sgi-gru')
-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)
351 for (p = proc_files; p->name; p++) 351 for (p = proc_files; p->name; p++)
352 if (p->entry) 352 if (p->entry)
353 remove_proc_entry(p->name, proc_gru); 353 remove_proc_entry(p->name, proc_gru);
354 remove_proc_entry("gru", NULL); 354 remove_proc_entry("gru", proc_gru->parent);
355 } 355 }
356} 356}
357 357