HID: intel-ish-hid: hid-client: only load for matching devices

Previously it was loaded for all ISHTP devices.

Signed-off-by: Thomas Weißschuh <[email protected]>
Acked-by: Srinivas Pandruvada <[email protected]>
Acked-by: Hans de Goede <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
Thomas Weißschuh authored and Jiri Kosina committed 2021-11-09 11:41:47 +01:00
1 parent 44e2a58cb8
commit 0d0cccc0fd
1 file changed
+6 -1
+6 -1
View File
@@ -952,6 +952,12 @@ static struct ishtp_cl_driver hid_ishtp_cl_driver = {
.driver.pm = &hid_ishtp_pm_ops,
};
static const struct ishtp_device_id hid_ishtp_id_table[] = {
{ hid_ishtp_guid },
{ }
};
MODULE_DEVICE_TABLE(ishtp, hid_ishtp_id_table);
static int __init ish_hid_init(void)
{
int rv;
@@ -981,4 +987,3 @@ MODULE_AUTHOR("Daniel Drubin <[email protected]>");
MODULE_AUTHOR("Srinivas Pandruvada <[email protected]>");
MODULE_LICENSE("GPL");
MODULE_ALIAS("ishtp:*");