From 870ae72aa7c6f5ce71fc1962b2b6df38c83bc564 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 22 Jan 2004 17:14:28 +0000 Subject: better do 2.4->2.6 compat module alias as soon as possible to display correct stuff in logs and simplify code --- mdk-stage1/modules.c | 77 +++++++++++++++++++++++++++------------------------- 1 file changed, 40 insertions(+), 37 deletions(-) diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c index 49d8a3512..c390a504c 100644 --- a/mdk-stage1/modules.c +++ b/mdk-stage1/modules.c @@ -129,35 +129,6 @@ static enum return_type ensure_additional_modules_available(void) return RETURN_OK; } -static const char * get_name_kernel_26_transition(const char * name) -{ - struct kernel_24_26_mapping { - const char * name_24; - const char * name_26; - }; - static struct kernel_24_26_mapping mappings[] = { - { "usb-ohci", "ohci-hcd" }, - { "usb-uhci", "uhci-hcd" }, - { "uhci", "uhci-hcd" }, -// { "printer", "usblp" }, - { "bcm4400", "b44" }, - { "3c559", "3c359" }, - { "3c90x", "3c59x" }, - { "dc395x_trm", "dc395x" }, -// { "audigy", "snd-emu10k1" }, - }; - int mappings_nb = sizeof(mappings) / sizeof(struct kernel_24_26_mapping); - int i; - - /* pcitable contains 2.4 names. this will need to change if/when it contains 2.6 names! */ - if (kernel_version() > 4) - for (i=0; i 4) + for (i=0; i