[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200911222201.59471.linux@rainbow-software.org>
Date: Sun, 22 Nov 2009 22:01:57 +0100
From: Ondrej Zary <linux@...nbow-software.org>
To: rusty@...tcorp.com.au, linux-kernel@...r.kernel.org
Subject: MODULE_DEVICE_TABLE(isapnp, ...) does nothing
Hello,
just found that Linux does not automatically load "ne" module for ISA PnP
NE2000 cards (RTL8019AS). ne.c contains this:
static struct isapnp_device_id isapnp_clone_list[] __initdata = {
{ ISAPNP_CARD_ID('A','X','E',0x2011),
ISAPNP_VENDOR('A','X','E'), ISAPNP_FUNCTION(0x2011),
(long) "NetGear EA201" },
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID,
ISAPNP_VENDOR('E','D','I'), ISAPNP_FUNCTION(0x0216),
(long) "NN NE2000" },
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID,
ISAPNP_VENDOR('P','N','P'), ISAPNP_FUNCTION(0x80d6),
(long) "Generic PNP" },
{ } /* terminate list */
};
MODULE_DEVICE_TABLE(isapnp, isapnp_clone_list);
but "modinfo ne" does not show any aliases. The ne.mod.c file produced during
build does not contain aliases too. The problem is that
scripts/mod/file2alias.c simply ignores isapnp.
ne.c is not the only file using MODULE_DEVICE_TABLE(isapnp, ...):
drivers/pcmcia/i82365.c
drivers/net/3c515.c
drivers/net/ne.c
drivers/net/smc-ultra.c
drivers/isdn/hisax/hisax_fspcipnp.c
drivers/media/radio/radio-sf16fmi.c
drivers/scsi/aha1542.c
drivers/scsi/aha152x.c
drivers/scsi/sym53c416.c
drivers/scsi/g_NCR5380.c
sound/oss/ad1848.c
How is (was) this supposed to work?
--
Ondrej Zary
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists