mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
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>
This commit is contained in:
parent
0d0cccc0fd
commit
facfe0a4fd
@ -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:*");
|
||||
|
Loading…
Reference in New Issue
Block a user