Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1538239pxj; Fri, 4 Jun 2021 18:04:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVXQ3HMGwxhWIu5Lffi3CQL5TLk6sRajv6VtNIu9RaKjR6ZbtBnJ+H3p62HQ3DPufWMbud X-Received: by 2002:a50:ee84:: with SMTP id f4mr2456893edr.97.1622855077013; Fri, 04 Jun 2021 18:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622855077; cv=none; d=google.com; s=arc-20160816; b=FDXeD0VVgW8/OHmQwBHokvdn/u5Xk9FafudW45OXQyL8PrHLW0GPiJg0R7k/awYHfy dcvbwqZUt/1V+qLs8x0abjzlhaMhBahWMMnwgvInXbBkIlnsaMWZbjhIxHB6JtRXPUNY v1dB+JflC8OOzXwbKxLwohPU4is41QOTOprOReoPphhhXhIQATq278JJ9UO0jB00R9u/ DC+VLtZCNv6dy1dUxhtsG8bHQ6XJGQIhTpH5Ti1M8a42q9IFLUZmFnasXxtGlGZw/q3P AMVsfcPPNOeK13bDgtLSwRcGJnBqijEAxtRl/8xwUhZwGpvX6MoLrh/l7/ZkeC+wVrzo XfTw== 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=C7ApQIp2ZjV7AZ0Yxkher355z7PO/kWjUOUaT1zPk48=; b=S+7OK7BMXC9S6tOoYcO6xfiTpYcFY4xvnJDN0hYX/HqXg/Xm6Hy3rtJWuP/vcq9Trz SI81LE98OQgLFp7pt3mXw2MDs2rukvBYWyELdHywvEi6/A/Z8x95fV+kIdwsG8RfrnTj gR7xw9V8/K7DydLU4jEEr8lNlJdE/2emiozlLAwZUsHA3nPgQiXKm/NAT+6gkfbbso1I r+q5IUWEDM/gT5GIiFCmBpge+Bh6tQcorVOQjN8oFrCNzoumyuk3xlJMFrnlBD2KkK6k 7rThO4ACvOhMwiqzyICiq+LG1GvfElY+izqYe24sOnCMESxRaarQb8NfB6QbZ6N2BmOW WhPA== 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 k3si6525602eds.334.2021.06.04.18.04.15; Fri, 04 Jun 2021 18:04:37 -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 S231225AbhFEBEx (ORCPT + 99 others); Fri, 4 Jun 2021 21:04:53 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3432 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbhFEBEw (ORCPT ); Fri, 4 Jun 2021 21:04:52 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FxhBC5MDMz6tng; Sat, 5 Jun 2021 09:00:03 +0800 (CST) Received: from dggemi762-chm.china.huawei.com (10.1.198.148) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Sat, 5 Jun 2021 09:03:03 +0800 Received: from linux-lmwb.huawei.com (10.175.103.112) by dggemi762-chm.china.huawei.com (10.1.198.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Sat, 5 Jun 2021 09:03:03 +0800 From: Zou Wei To: CC: , , Zou Wei Subject: [PATCH -next] power: supply: ab8500: add missing MODULE_DEVICE_TABLE Date: Sat, 5 Jun 2021 09:21:41 +0800 Message-ID: <1622856101-68143-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-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggemi762-chm.china.huawei.com (10.1.198.148) 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/supply/ab8500_btemp.c | 1 + drivers/power/supply/ab8500_charger.c | 1 + drivers/power/supply/ab8500_fg.c | 1 + 3 files changed, 3 insertions(+) diff --git a/drivers/power/supply/ab8500_btemp.c b/drivers/power/supply/ab8500_btemp.c index 5b664d2..dbdcff3 100644 --- a/drivers/power/supply/ab8500_btemp.c +++ b/drivers/power/supply/ab8500_btemp.c @@ -1097,6 +1097,7 @@ static const struct of_device_id ab8500_btemp_match[] = { { .compatible = "stericsson,ab8500-btemp", }, { }, }; +MODULE_DEVICE_TABLE(of, ab8500_btemp_match); 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 4a6bc43..fa49e12 100644 --- a/drivers/power/supply/ab8500_charger.c +++ b/drivers/power/supply/ab8500_charger.c @@ -3705,6 +3705,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 4da8992..3d45ed0 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); struct platform_driver ab8500_fg_driver = { .probe = ab8500_fg_probe, -- 2.6.2