Skip to content
Commit 21bdd17b authored by Tom Gundersen's avatar Tom Gundersen Committed by Rusty Russell
Browse files

module: allow multiple calls to MODULE_DEVICE_TABLE() per module

Commit 78551277

: "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: default avatarKay Sievers <kay@vrfy.org>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarTom Gundersen <teg@jklm.no>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 27bba4d6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment