diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-03 11:14:13 +1030 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-07-02 12:05:56 +0200 |
commit | c0994abad32816af80e7a32b37e1f2868d77a584 (patch) | |
tree | 1f9fb761d2ab6c63e0ce66962d4ff677c640b0b8 /include/linux/module.h | |
parent | e93482952c7fb004c81224da37bca5a9089d85b2 (diff) | |
download | lwn-c0994abad32816af80e7a32b37e1f2868d77a584.tar.gz lwn-c0994abad32816af80e7a32b37e1f2868d77a584.zip |
module: allow multiple calls to MODULE_DEVICE_TABLE() per module
commit 21bdd17b21b45ea48e06e23918d681afbe0622e9 upstream.
Commit 78551277e4df5: "Input: i8042 - add PNP modaliases" had a bug, where the
second call to MODULE_DEVICE_TABLE() overrode the first resulting in not all
the modaliases being exposed.
This fixes the problem by including the name of the device_id table in the
__mod_*_device_table alias, allowing us to export several device_id tables
per module.
Suggested-by: Kay Sievers <kay@vrfy.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Conflicts:
include/linux/module.h
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 05f2447f8c15..54aef1b38463 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -143,7 +143,7 @@ extern const struct gtype##_id __mod_##gtype##_table \ #define MODULE_DESCRIPTION(_description) MODULE_INFO(description, _description) #define MODULE_DEVICE_TABLE(type,name) \ - MODULE_GENERIC_TABLE(type##_device,name) + MODULE_GENERIC_TABLE(type##__##name##_device, name) /* Version of form [<epoch>:]<version>[-<extra-version>]. Or for CVS/RCS ID version, everything but the number is stripped. |