Skip to content

Commit

Permalink
HID: intel-ish-hid: fw-loader: 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 cb1a2c6 commit 44e2a58
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/hid/intel-ish-hid/ishtp-fw-loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,12 @@ static struct ishtp_cl_driver loader_ishtp_cl_driver = {
.reset = loader_ishtp_cl_reset,
};

static const struct ishtp_device_id loader_ishtp_id_table[] = {
{ loader_ishtp_guid },
{ }
};
MODULE_DEVICE_TABLE(ishtp, loader_ishtp_id_table);

static int __init ish_loader_init(void)
{
return ishtp_cl_driver_register(&loader_ishtp_cl_driver, THIS_MODULE);
Expand All @@ -1083,4 +1089,3 @@ MODULE_DESCRIPTION("ISH ISH-TP Host firmware Loader Client Driver");
MODULE_AUTHOR("Rushikesh S Kadam <rushikesh.s.kadam@intel.com>");

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

0 comments on commit 44e2a58

Please sign in to comment.