[PATCH 4/6] HID: intel-ish-hid: hid-client: only load for matching devices
From: Thomas Weißschuh
Date: Fri Oct 29 2021 - 11:29:32 EST
Previously it was loaded for all ISHTP devices.
Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Cc: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx>
Cc: Jiri Kosina <jikos@xxxxxxxxxx>
Cc: Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>
Cc: linux-input@xxxxxxxxxxxxxxx
---
drivers/hid/intel-ish-hid/ishtp-hid-client.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/hid/intel-ish-hid/ishtp-hid-client.c b/drivers/hid/intel-ish-hid/ishtp-hid-client.c
index 91bf4d01e91a..fb47d38d1e87 100644
--- a/drivers/hid/intel-ish-hid/ishtp-hid-client.c
+++ b/drivers/hid/intel-ish-hid/ishtp-hid-client.c
@@ -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 <daniel.drubin@xxxxxxxxx>");
MODULE_AUTHOR("Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx>");
MODULE_LICENSE("GPL");
-MODULE_ALIAS("ishtp:*");
--
2.33.1