From patchwork Fri Oct 29 15:29:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 12593005 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC5C2C4332F for ; Fri, 29 Oct 2021 15:29:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 90F0D6117A for ; Fri, 29 Oct 2021 15:29:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230196AbhJ2Pbx (ORCPT ); Fri, 29 Oct 2021 11:31:53 -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_Wei=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_Wei=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 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Previously it was loaded for all ISHTP devices. Signed-off-by: Thomas Weißschuh Reviewed-by: Hans de Goede --- 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:*");