Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3144973pxj; Mon, 10 May 2021 20:21:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7LQHXLqayYfjiM9ot10ia/U7PYuTmaSI9c84nu8MG/CVlOqWs6/AQBZiUIcLQ6JsChI/C X-Received: by 2002:a05:6638:3bc:: with SMTP id z28mr24281786jap.133.1620703295774; Mon, 10 May 2021 20:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620703295; cv=none; d=google.com; s=arc-20160816; b=HCCAh2ByPaBFox0R+iQpUBRxTIzunUxLhFLJQIBdiEPmkSKW6Y+dfqvvclVyYoaxJg 73B8yGEY7+DRjjFVPS3S7bRcExguONsZWH+7wZfH6SSqn0ii11q3hUIBrVQFKbw4tBsi rXt34XCKDNqsTGabprcFH69EK1YRkCgidkTVT0nThwenIpnUwOJRmTMn8AawHFeBjE+J PvthAYohKCP/TI9bXLXT12Bm2ErOD1dTHiMnutjBVa8Bcr1EIeITYUnXeyDc24JWLUpZ 08j5uxUkTfvTJdx1cV+K8kvGc4umnxofqIvNqVt/dLmG1V7Eu5D4R7QUQMXhNSZdl6M3 9lqw== 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=s2KIrJzM7RTAwJqpU9LtB587NnXi/iFM3SJ3Ny7cvDw=; b=lUx7GZ/VtEUjFAkFru6gknEJQ69tzv4wc7mi3QG6tfDQIfqLMeLEhxOqZkajl8fsJQ 5sFcapOVwz7wsgCE1DgXaocILMyFc1dIDG4SjaAnbFbtaqW/enHM1p+B+8Dw7VmM395X HuHqLM0yf/H0ckYkLQ8V73iqdebIeGRLugq+uqBEdwwGd31IeGu3nM2UDPJ9NRSY9cSw iA4EPmtslCuA5YAnN2Qyp2GY6NA97RDs9NtEF0OTp4rWuIs4rjZ2MELl9LA6ouUQ8F/z V8SpF53PyT03FkYFe/z47blcUhbHG32lAPxhEQNzNp5y0TPQ5fzTm3HvY5ckZblaVrv6 nnEQ== 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 k6si17935816ilo.39.2021.05.10.20.21.23; Mon, 10 May 2021 20:21:35 -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 S230096AbhEKDVy (ORCPT + 99 others); Mon, 10 May 2021 23:21:54 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:2051 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbhEKDVx (ORCPT ); Mon, 10 May 2021 23:21:53 -0400 Received: from dggeml767-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FfNPD15sXzWhLv; Tue, 11 May 2021 11:16:32 +0800 (CST) Received: from dggemi762-chm.china.huawei.com (10.1.198.148) by dggeml767-chm.china.huawei.com (10.1.199.177) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 11 May 2021 11:20:45 +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; Tue, 11 May 2021 11:20:45 +0800 From: Zou Wei To: , , , CC: , , Zou Wei Subject: [PATCH -next] power: supply: sc27xx: Add missing MODULE_DEVICE_TABLE Date: Tue, 11 May 2021 11:37:45 +0800 Message-ID: <1620704265-104090-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: dggems705-chm.china.huawei.com (10.3.19.182) 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/sc27xx_fuel_gauge.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/supply/sc27xx_fuel_gauge.c b/drivers/power/supply/sc27xx_fuel_gauge.c index 9c62761..1ae8374 100644 --- a/drivers/power/supply/sc27xx_fuel_gauge.c +++ b/drivers/power/supply/sc27xx_fuel_gauge.c @@ -1342,6 +1342,7 @@ static const struct of_device_id sc27xx_fgu_of_match[] = { { .compatible = "sprd,sc2731-fgu", }, { } }; +MODULE_DEVICE_TABLE(of, sc27xx_fgu_of_match); static struct platform_driver sc27xx_fgu_driver = { .probe = sc27xx_fgu_probe, -- 2.6.2