summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/list_modules.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/list_modules.pm b/kernel/list_modules.pm
index 70fa2cdfe..6e41aaa76 100644
--- a/kernel/list_modules.pm
+++ b/kernel/list_modules.pm
@@ -289,8 +289,9 @@ sub load_dependencies {
s![^ ]*/!!g;
s!\.ko!!g;
s!\.gz!!g;
- my ($f, $deps) = split ':';
- $f => [ split ' ', $deps ];
+ my ($filename, $d) = split ':';
+ my ($modname, @deps) = map { filename2modname($_) } $filename, split(' ', $d);
+ $dependencies{$modname} = \@deps;
} cat_($file);
}