]> git.baikalelectronics.ru Git - kernel.git/commit
module: allow multiple calls to MODULE_DEVICE_TABLE() per module
authorTom Gundersen <teg@jklm.no>
Mon, 3 Feb 2014 00:44:13 +0000 (11:14 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 13 Mar 2014 01:41:00 +0000 (12:11 +1030)
commit0395897631736cad69cf3c90c35b0d436c844c79
tree6eff7072912ade3ba7722d98acc753c65477b169
parent8cea8b86ebd07f30f347d86b31e3ae473d42b476
module: allow multiple calls to MODULE_DEVICE_TABLE() per module

Commit 6967898dc7514: "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>
include/linux/module.h
scripts/mod/file2alias.c