Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp216654pxb; Fri, 29 Oct 2021 08:34:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx42sXIouJLCMQH7RbFp/yWlmXl78hUnyFyNmdN57BSMMRjKLrCaxN0mLydh+8RiZvSt9EJ X-Received: by 2002:a05:6402:55:: with SMTP id f21mr15976566edu.8.1635521672607; Fri, 29 Oct 2021 08:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635521672; cv=none; d=google.com; s=arc-20160816; b=FhuIsX+uTV/CvUDmFNOhBAFnpPi0/d73YdZn16qNMFPB7k9Lj9ih96ZiwcYoiE/LbD 0IPAf7QIIV+bcqltBDCjgIJcUcaIEi6MSNB6zMHjiGshXK7Fu0rMfcKKCTTK/Wp6nDEl Kf35b3yJug1vh5InmjNhgcIXdltPfKhBEtGt2Zak5vBOtjLjd8J9z8Es7pFg+nfcw5uT 8m44QoF6fA4i4kQIflWqPuIYzjfvE2DOEpNuT3k7HaqotT1h5DeagXifK2QF10RM2ZbP 78+2duiZjwptTRgqCU7mnb1sUXxpjtnNo434JeFc18bptx2QR6JN7aAWF7aNS8mgGWBE KoCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :from; bh=wHKA0MRGD6ubRiDVQ/p42tT3FfqsAoIUOl9Sb3oscfk=; b=AHmlPKrLIGftqAO7cMoxYB76SwoGvvwJw+LQnV3f46gS9YGQ/wkyDLV6quOMOVANAT TqaVUFVndXMNe6E1rffohIPnEiPnwJ1RQOv4hkPd5i69Ndqej21EydXfdlT4urVcRWnA Tt9MkcCY+wK3/7eylv3yrLY6wSxA8N0B/AI4iRql3YBsIc1hA/kHjyUuY+0qDMoB6dDW t2ekVvRiwjoomMVhSi6Pfs/F94pIqdsK92oRmrLauYhpfpdZyNuLQcLPnGTkMTmFQspC ORznwypj+v917j/Dyis+2KehUVUdT7Lrz1HVV3RUEGFhG9Ib80U8BjRW8E1b/YhpJMEE sCEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=Ro9xYb+G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si7563036edi.454.2021.10.29.08.34.06; Fri, 29 Oct 2021 08:34:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=Ro9xYb+G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230370AbhJ2PcA (ORCPT + 99 others); Fri, 29 Oct 2021 11:32:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230121AbhJ2Pbu (ORCPT ); Fri, 29 Oct 2021 11:31:50 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89B09C061714; Fri, 29 Oct 2021 08:29:20 -0700 (PDT) From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1635521357; bh=NNgWRHviHUxTdEHra5hNjg8D6E5Lz7MJlnaX9y6/l30=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ro9xYb+Gtov7XIo/j4KhWyyer/srnVwqN7rPER3mtRYtmgkXEGtf9Dy0Zhf5BQI00 1OrH98h00BDJXljCEnZzLTzrNWBuuCUy4B8QYkdcVstpHKirVdy9gBS2dSQk8KnxkU sB6TJcwBpMFxVPA9Bo1vYhH0TOi8+nC1u7Skgv+A= To: linux-input@vger.kernel.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org, Srinivas Pandruvada , K@troy.t-8ch.de, Naduvalath@troy.t-8ch.de, Sumesh , Jiri Kosina , Benjamin Tissoires , Hans de Goede , Mark Gross , platform-driver-x86@vger.kernel.org Subject: [PATCH 6/6] platform/x86: isthp_eclite: only load for matching devices Date: Fri, 29 Oct 2021 17:29:01 +0200 Message-Id: <20211029152901.297939-7-linux@weissschuh.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211029152901.297939-6-linux@weissschuh.net> References: <20211029152901.297939-1-linux@weissschuh.net> <20211029152901.297939-2-linux@weissschuh.net> <20211029152901.297939-3-linux@weissschuh.net> <20211029152901.297939-4-linux@weissschuh.net> <20211029152901.297939-5-linux@weissschuh.net> <20211029152901.297939-6-linux@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Previously it was loaded for all ISHTP devices. Signed-off-by: Thomas Weißschuh --- Cc: Srinivas Pandruvada Cc: K Naduvalath, Sumesh Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: Hans de Goede Cc: Mark Gross Cc: linux-input@vger.kernel.org Cc: platform-driver-x86@vger.kernel.org --- drivers/platform/x86/intel/ishtp_eclite.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 "); MODULE_LICENSE("GPL v2"); -MODULE_ALIAS("ishtp:*"); -- 2.33.1