summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/ishtp_eclite.c
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2021-10-29 17:29:01 +0200
committerJiri Kosina <jkosina@suse.cz>2021-11-09 11:41:47 +0100
commitf155dfeaa4ee21bce3f8f76b2addaec396b41b39 (patch)
tree061cc35c4b9c1c2f065a91bc7de6d0b321c045d7 /drivers/platform/x86/intel/ishtp_eclite.c
parentplatform/chrome: chros_ec_ishtp: only load for matching devices (diff)
downloadlinux-f155dfeaa4ee21bce3f8f76b2addaec396b41b39.tar.xz
linux-f155dfeaa4ee21bce3f8f76b2addaec396b41b39.zip
platform/x86: isthp_eclite: 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/x86/intel/ishtp_eclite.c')
-rw-r--r--drivers/platform/x86/intel/ishtp_eclite.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/ishtp_eclite.c b/drivers/platform/x86/intel/ishtp_eclite.c
index 12fc98a48657..b9fb8f28fd63 100644
--- a/drivers/platform/x86/intel/ishtp_eclite.c
+++ b/drivers/platform/x86/intel/ishtp_eclite.c
@@ -681,6 +681,12 @@ static struct ishtp_cl_driver ecl_ishtp_cl_driver = {
.driver.pm = &ecl_ishtp_pm_ops,
};
+static const struct ishtp_device_id ecl_ishtp_id_table[] = {
+ { ecl_ishtp_guid },
+ { }
+};
+MODULE_DEVICE_TABLE(ishtp, ecl_ishtp_id_table);
+
static int __init ecl_ishtp_init(void)
{
return ishtp_cl_driver_register(&ecl_ishtp_cl_driver, THIS_MODULE);
@@ -698,4 +704,3 @@ MODULE_DESCRIPTION("ISH ISHTP eclite client opregion driver");
MODULE_AUTHOR("K Naduvalath, Sumesh <sumesh.k.naduvalath@intel.com>");
MODULE_LICENSE("GPL v2");
-MODULE_ALIAS("ishtp:*");