Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp234381pxj; Thu, 13 May 2021 03:46:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyke6edLSFeV7zHPHH+HJZrmqV1dWVduPcZe6OWW0FjnkF+DBeEhBHWRLTozOpSRli85484 X-Received: by 2002:a6b:d918:: with SMTP id r24mr29958697ioc.25.1620902791583; Thu, 13 May 2021 03:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620902791; cv=none; d=google.com; s=arc-20160816; b=njzMPp5A2DNDvORvy1jgj9m8ztgzWfc7U2hPdFJ/nL6Hvnl+4HTnftwNoLjAu3cmAF EfqpHw/aZdH1oUr2rlljIpfi4sG8gzU/XnjgK6VhOj5Vxfj29IL+AebLvz2fMWbTcfW/ 627FVAieIPfny0D93ZQdxB+BzLhZKeBqCzeeH76CTyr3pkwdkdLwMQuMgLrk7F3k8Uta YOhszgOkDyjbmhcytbQu24ALpubwJUMcUlwrkopJex/NXFTsjzN/4XFrIcbI7A7oeloP EdKwk2uYXU+x+R5/lSqT8nI6LC2VgcEMpvjj7NYeztDQzfohRYyKCz1oLZCpTGwUmqLa 9/Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Xh7k8i1y2VrQKfJQuLm3z8OP7hDiGRMjZl0v7M1RlVs=; b=zi9SuEBXghO+R5PKv9Wu19RnNJgALtqrpc8jJY9pfETPylTmGxZyM7kc1mcELk1owZ OEj3K2ot0f0iJddhKQ6GmM7ReIttjAo2gzDe4W3WyWSJQKVjKFb4TL0kkuVKupuUzmdE 1fSIo5yJfizKjHJKhBNartlOgFcgiPk9ZEu7pfDj71k18mqgojCQ1D+W60XKZRVzciaN pLM1xL7a/svat4duLys82ayGVrV+bXbyplkrGykvJiJqRtpyqS+5LeDsaieXiZDXm0Eo Zj+Vt3Pp8ZbyATGX4FW2C/PzP0DvuwvRjiMWzZHK/hGh0Lf3QTJj+IGdVksy7ttc2vj9 ipUw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v13si3528622jal.64.2021.05.13.03.46.16; Thu, 13 May 2021 03:46:31 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232142AbhEMItX (ORCPT + 99 others); Thu, 13 May 2021 04:49:23 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3745 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232168AbhEMItS (ORCPT ); Thu, 13 May 2021 04:49:18 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fglb03ww2zqSvx; Thu, 13 May 2021 16:44:44 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.498.0; Thu, 13 May 2021 16:48:00 +0800 From: Zou Wei To: CC: , , Zou Wei Subject: [PATCH -next] power: reset/supply: add missing MODULE_DEVICE_TABLE Date: Thu, 13 May 2021 17:05:01 +0800 Message-ID: <1620896701-53542-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/power/reset/regulator-poweroff.c | 1 + drivers/power/supply/ab8500_btemp.c | 1 + drivers/power/supply/ab8500_charger.c | 1 + drivers/power/supply/ab8500_fg.c | 1 + drivers/power/supply/charger-manager.c | 1 + 5 files changed, 5 insertions(+) diff --git a/drivers/power/reset/regulator-poweroff.c b/drivers/power/reset/regulator-poweroff.c index f697088..2070120 100644 --- a/drivers/power/reset/regulator-poweroff.c +++ b/drivers/power/reset/regulator-poweroff.c @@ -64,6 +64,7 @@ static const struct of_device_id of_regulator_poweroff_match[] = { { .compatible = "regulator-poweroff", }, {}, }; +MODULE_DEVICE_TABLE(of, of_regulator_poweroff_match); static struct platform_driver regulator_poweroff_driver = { .probe = regulator_poweroff_probe, diff --git a/drivers/power/supply/ab8500_btemp.c b/drivers/power/supply/ab8500_btemp.c index fdfcd59..db1adc1 100644 --- a/drivers/power/supply/ab8500_btemp.c +++ b/drivers/power/supply/ab8500_btemp.c @@ -1106,6 +1106,7 @@ static const struct of_device_id ab8500_btemp_match[] = { { .compatible = "stericsson,ab8500-btemp", }, { }, }; +MODULE_DEVICE_TABLE(of, ab8500_btemp_match); static struct platform_driver ab8500_btemp_driver = { .probe = ab8500_btemp_probe, diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c index a9be10e..94da73e 100644 --- a/drivers/power/supply/ab8500_charger.c +++ b/drivers/power/supply/ab8500_charger.c @@ -3644,6 +3644,7 @@ static const struct of_device_id ab8500_charger_match[] = { { .compatible = "stericsson,ab8500-charger", }, { }, }; +MODULE_DEVICE_TABLE(of, ab8500_charger_match); static struct platform_driver ab8500_charger_driver = { .probe = ab8500_charger_probe, diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c index 0c7c01a..5a86afd 100644 --- a/drivers/power/supply/ab8500_fg.c +++ b/drivers/power/supply/ab8500_fg.c @@ -3212,6 +3212,7 @@ static const struct of_device_id ab8500_fg_match[] = { { .compatible = "stericsson,ab8500-fg", }, { }, }; +MODULE_DEVICE_TABLE(of, ab8500_fg_match); static struct platform_driver ab8500_fg_driver = { .probe = ab8500_fg_probe, diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c index 45da870..d67edb7 100644 --- a/drivers/power/supply/charger-manager.c +++ b/drivers/power/supply/charger-manager.c @@ -1279,6 +1279,7 @@ static const struct of_device_id charger_manager_match[] = { }, {}, }; +MODULE_DEVICE_TABLE(of, charger_manager_match); static struct charger_desc *of_cm_parse_desc(struct device *dev) { -- 2.6.2