Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3933360imj; Tue, 19 Feb 2019 12:04:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IZw5qDD3bgUzJxvhtc1fcEUapEuZD5PwL1V1mQDlEJOHX4uagG7787SLjnMpm53jZq6QHeh X-Received: by 2002:a62:e716:: with SMTP id s22mr30757463pfh.35.1550606687867; Tue, 19 Feb 2019 12:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550606687; cv=none; d=google.com; s=arc-20160816; b=DTvrVkHqcDckwjzfVSaUQJZlmrhJghAjQc3ZGdlKb/yhktJPs0n8tGMRYiat1K4PRI jKIjWBjnTJOdpQ8QnqWgLZG6VuDtah58cB5KXNrE1CMbNo2V7QfHFI6q/PZezATAL7W/ U3rETz/ZT/WQjESxex4NT5lYjpvLfm73OtZRDopOWeEKmfRlp1Rx1oiBjNxePFjGb68b cXK7aROVvuhV7sdWgNNxgOzIdBH4yFj+XXLLKhM+rX/34V7RMPwrU49naefTgAXUHiIq yPPfU/GCEs/CF38QkYLgWNPo1QfGP80zGQpM/4LAvmByY2U1ZOnkKazdK/HkT/7XIZyn 4Hrw== 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=+ePS9HfBa5ZFNR5j2gaya4ZlJFhHH99Rf6Tst8eRb+g=; b=clBFCkjxiA4ywnsvykPFFwgZkXS4vls5Je+hNyCmWzmdq7cBC6LQBumXjPKhAI7ruU AwrnSc8KAszJ1Kb++GrrzUlyN5tFu7MxaVqivQ3lb4sdQ/JW7qePFVIwtW9sbNr0VJX5 uNSfbvmoD+x2+344XXNhPrvqQPy3GJjSVCgw3yovzdJeJ9ZIYdo9f3RBYGv+D229Ly5L 3/nCKGAZJT7kITjh6orAXXgNagvnW+YVNrg8dCzyHp5czqQnDJfVvphOyhOsa+B/a9I2 5Y3Vl6074Z8KJMTL9mHDftEMoUj9vQb1IJ158foa08cDpsscrgk59yByZ39qw/HEde2W xaBA== 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 d10si17320201pgf.136.2019.02.19.12.04.32; Tue, 19 Feb 2019 12:04:47 -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 S1729612AbfBSUAm (ORCPT + 99 others); Tue, 19 Feb 2019 15:00:42 -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 S1729537AbfBSUAj (ORCPT ); Tue, 19 Feb 2019 15:00:39 -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:08 +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:14 +0100 From: Mattias Jacobsson <2pi@mok.nu> To: , , CC: <2pi@mok.nu>, , Subject: [PATCH v4 3/8] platform/x86: dell-smbios-wmi: use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS() Date: Tue, 19 Feb 2019 20:59:51 +0100 Message-ID: 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> Reviewed-by: Mario Limonciello --- drivers/platform/x86/dell-smbios-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/dell-smbios-wmi.c b/drivers/platform/x86/dell-smbios-wmi.c index cf2229ece9ff..c3ed3c8c17b9 100644 --- a/drivers/platform/x86/dell-smbios-wmi.c +++ b/drivers/platform/x86/dell-smbios-wmi.c @@ -277,4 +277,4 @@ void exit_dell_smbios_wmi(void) wmi_driver_unregister(&dell_smbios_wmi_driver); } -MODULE_ALIAS("wmi:" DELL_WMI_SMBIOS_GUID); +MODULE_DEVICE_TABLE(wmi, dell_smbios_wmi_id_table); -- 2.20.1