Skip to content

Commit

Permalink
HID: intel-ish-hid: hid-client: only load for matching devices
Browse files Browse the repository at this point in the history
Previously it was loaded for all ISHTP devices.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Thomas Weißschuh authored and Jiri Kosina committed Nov 9, 2021
1 parent 44e2a58 commit 0d0cccc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/hid/intel-ish-hid/ishtp-hid-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -981,4 +987,3 @@ MODULE_AUTHOR("Daniel Drubin <daniel.drubin@intel.com>");
MODULE_AUTHOR("Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>");

MODULE_LICENSE("GPL");
MODULE_ALIAS("ishtp:*");

0 comments on commit 0d0cccc

Please sign in to comment.