From 3c7720281fc9c4e2515f2a78e8aee21e9ed639c6 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 22 Jan 2004 11:29:42 +0000 Subject: nice kernel guys like to change modules names for no reasons when they have a break --- mdk-stage1/modules.c | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c index efa3b96a0..6e754c892 100644 --- a/mdk-stage1/modules.c +++ b/mdk-stage1/modules.c @@ -129,6 +129,35 @@ 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