diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2021-10-29 18:29:00 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-11-09 13:41:47 +0300 |
commit | facfe0a4fdce3f545a4a883358eda3078b0425c7 (patch) | |
tree | 23f15b13fc9068e0bbedcf642c1affec98b8996c /drivers/platform | |
parent | 0d0cccc0fd83f4657cfc2e50706bfa16f125057e (diff) | |
download | linux-facfe0a4fdce3f545a4a883358eda3078b0425c7.tar.xz |
platform/chrome: chros_ec_ishtp: only load for matching devices
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/chrome/cros_ec_ishtp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/platform/chrome/cros_ec_ishtp.c b/drivers/platform/chrome/cros_ec_ishtp.c index 9d1e7e03628e..8c17358e84c1 100644 --- a/drivers/platform/chrome/cros_ec_ishtp.c +++ b/drivers/platform/chrome/cros_ec_ishtp.c @@ -774,6 +774,12 @@ static struct ishtp_cl_driver cros_ec_ishtp_driver = { }, }; +static const struct ishtp_device_id cros_ec_ishtp_id_table[] = { + { cros_ish_guid }, + { } +}; +MODULE_DEVICE_TABLE(ishtp, cros_ec_ishtp_id_table); + static int __init cros_ec_ishtp_mod_init(void) { return ishtp_cl_driver_register(&cros_ec_ishtp_driver, THIS_MODULE); @@ -791,4 +797,3 @@ MODULE_DESCRIPTION("ChromeOS EC ISHTP Client Driver"); MODULE_AUTHOR("Rushikesh S Kadam <rushikesh.s.kadam@intel.com>"); MODULE_LICENSE("GPL v2"); -MODULE_ALIAS("ishtp:*"); |