mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] EISA bus MODALIAS attributes support
Add modalias attribute support for the almost forgotten now EISA bus and
(at least some) EISA-aware modules.
The modalias entry looks like (for an 3c509 NIC):
eisa:sTCM5093
and the in-module alias like:
eisa:sTCM5093*
The patch moves struct eisa_device_id declaration from include/linux/eisa.h
to include/linux/mod_devicetable.h (so that the former now #includes the
latter), adds proper MODULE_DEVICE_TABLE(eisa, ...) statements for all
drivers with EISA IDs I found (some drivers already have that DEVICE_TABLE
declared), and adds recognision of __mod_eisa_device_table to
scripts/mod/file2alias.c so that proper modules.alias will be generated.
There's no support for /lib/modules/$kver/modules.eisamap, as it's not used
by any existing tools, and because with in-kernel modalias mechanism those
maps are obsolete anyway.
The rationale for this patch is:
a) to make EISA bus to act as other busses with modalias
support, to unify driver loading
b) to foget about EISA finally - with this patch, kernel
(who still supports EISA) will be the only one who knows
how to choose the necessary drivers for this bus ;)
[[email protected]: fix the kbuild bit]
Signed-off-by: Michael Tokarev <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: Randy Dunlap <[email protected]>
Acked-the-net-bits-by: Jeff Garzik <[email protected]>
Acked-the-tulip-bit-by: Valerie Henson <[email protected]>
Cc: James Bottomley <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ebba5f9fcb
commit
07563c711f
11 changed files with 56 additions and 8 deletions
|
|
@ -225,6 +225,7 @@ static struct eisa_device_id el3_eisa_ids[] = {
|
|||
{ "TCM5095" },
|
||||
{ "" }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(eisa, el3_eisa_ids);
|
||||
|
||||
static int el3_eisa_probe (struct device *device);
|
||||
|
||||
|
|
|
|||
|
|
@ -851,6 +851,7 @@ static struct eisa_device_id vortex_eisa_ids[] = {
|
|||
{ "TCM5970", CH_3C597 },
|
||||
{ "" }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(eisa, vortex_eisa_ids);
|
||||
|
||||
static int vortex_eisa_probe(struct device *device);
|
||||
static int vortex_eisa_remove(struct device *device);
|
||||
|
|
|
|||
|
|
@ -343,6 +343,7 @@ static struct eisa_device_id ne3210_ids[] = {
|
|||
{ "NVL1801" },
|
||||
{ "" },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(eisa, ne3210_ids);
|
||||
|
||||
static struct eisa_driver ne3210_eisa_driver = {
|
||||
.id_table = ne3210_ids,
|
||||
|
|
|
|||
|
|
@ -2114,6 +2114,7 @@ static struct eisa_device_id de4x5_eisa_ids[] = {
|
|||
{ "DEC4250", 0 }, /* 0 is the board name index... */
|
||||
{ "" }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(eisa, de4x5_eisa_ids);
|
||||
|
||||
static struct eisa_driver de4x5_eisa_driver = {
|
||||
.id_table = de4x5_eisa_ids,
|
||||
|
|
|
|||
Loading…
Reference in a new issue