Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3929624imj; Tue, 19 Feb 2019 12:01:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IbG3XOUgge0hT7As/59IC3gyvwySzQjUhWgVvXlU+yygQS47hKXL0bF+fGE8mFzDBIKvgFd X-Received: by 2002:a17:902:c23:: with SMTP id 32mr33130036pls.183.1550606510260; Tue, 19 Feb 2019 12:01:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550606510; cv=none; d=google.com; s=arc-20160816; b=LeygPWI8Fu79f0jp50/lPFXIKze4Mq9zcrNJkTWMVvl9PPmvE4FGWAVZcknW3zyEFa JFnqGle05cwIJ1hCtpjvxH1QVFV1n8h6wlbX/23gTgOXEyqXo+RAh8pgGGyi5J2n11gQ BzpufJ2sWdWS5K8EVNG/BvDepHvJDDvcJCogm6+Du3oVhmC4UMSSmK9VZM3NSvAfqApr R14apaFjCUMvK5C6N2vDfOiWzfO7LSC/Uz+q1916ydepM4NmguWjh0YRYVnkUCZmF0Xe qfE4G+qxcxfxEbWXeYkpqJNf9Ml44vlA2ZOigug/9Zg9QulCtSudCdNO5qInj5Rdd3xA dKlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=pqohOrfJq2GGONfYs4XtkADHmvFnbaTVZ2qhjHMICzM=; b=c1LQCR02fkZ7bDvOxSCwLHfMYRruekMCO4+Mgyd7FpMcbVXMWRed/1krPDIzQ2Wwh+ jr4pB0VAjxlnvWAY46UXzUtWMMr+vI6j85dIN2vfpXkXUDEggX4tqfYsHYJG50U3u5M3 AH+C7VOtalgkRlaO8465bcPeDE8XrBtDWKcFrJUepZvIRHFHSGK53lvwrhWjzE4PJJ0/ HXBxg2LXkOCIN8UbJQKG/br2nUIloHICqY4Fdpl7IH12c3HXIBsWx5rrB4ymkccTA9fO JCsmXdPhFCiZ3zRPZfzBksb9p9usnCwGeIWuWUrTJKrpB+q2vfYbe19d7Xd8lKzoml3W q6fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mok.nu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si18339147plb.161.2019.02.19.12.01.35; Tue, 19 Feb 2019 12:01:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mok.nu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729697AbfBSUAv (ORCPT + 99 others); Tue, 19 Feb 2019 15:00:51 -0500 Received: from route-level1.fsdata.se ([89.221.252.216]:49358 "EHLO route-level1.fsdata.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729659AbfBSUAr (ORCPT ); Tue, 19 Feb 2019 15:00:47 -0500 Received: from DAG01.HMC.local (192.168.46.11) by EDGE01LEVEL1.hmc.local (192.168.46.33) with Microsoft SMTP Server (TLS) id 15.0.847.32; Tue, 19 Feb 2019 21:00:18 +0100 Received: from localhost (94.234.42.81) by DAG01.HMC.local (192.168.46.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 19 Feb 2019 21:00:25 +0100 From: Mattias Jacobsson <2pi@mok.nu> To: , CC: <2pi@mok.nu>, , Subject: [PATCH v4 8/8] platform/x86: wmi-bmof: use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS() Date: Tue, 19 Feb 2019 20:59:56 +0100 Message-ID: <882a32463f062f7da0f345b7da7b0bd654781485.1550603967.git.2pi@mok.nu> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [94.234.42.81] X-ClientProxiedBy: PROXY05.HMC.local (192.168.46.55) To DAG01.HMC.local (192.168.46.11) Received-SPF: Neutral (EDGE01LEVEL1.hmc.local: 192.168.46.11 is neither permitted nor denied by domain of 2pi@mok.nu) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WMI drivers can if they have specified an array of struct wmi_device_id use the MODULE_DEVICE_TABLE() macro to automatically generate the appropriate MODULE_ALIAS() output. Thus avoiding to keep both the array of struct wmi_device_id and the MODULE_ALIAS() declaration(s) in sync. Change driver to use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS(). Signed-off-by: Mattias Jacobsson <2pi@mok.nu> --- drivers/platform/x86/wmi-bmof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/wmi-bmof.c b/drivers/platform/x86/wmi-bmof.c index c4530ba715e8..8751a13134be 100644 --- a/drivers/platform/x86/wmi-bmof.c +++ b/drivers/platform/x86/wmi-bmof.c @@ -119,7 +119,7 @@ static struct wmi_driver wmi_bmof_driver = { module_wmi_driver(wmi_bmof_driver); -MODULE_ALIAS("wmi:" WMI_BMOF_GUID); +MODULE_DEVICE_TABLE(wmi, wmi_bmof_id_table); MODULE_AUTHOR("Andrew Lutomirski "); MODULE_DESCRIPTION("WMI embedded Binary MOF driver"); MODULE_LICENSE("GPL"); -- 2.20.1