Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1539341pxj; Fri, 4 Jun 2021 18:06:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwz5efAu/rWauNgosKTWTsmyHkrWCkILXJzcNPW7KX+UpycQabMVshTOyGAIEN7L5tf+gTg X-Received: by 2002:aa7:cd42:: with SMTP id v2mr7745427edw.245.1622855201326; Fri, 04 Jun 2021 18:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622855201; cv=none; d=google.com; s=arc-20160816; b=j4O4nX5Gw5bBCtmxzh/h5o9XFXRvegSzUTeRhFCdj/0el3SyssmkWADGgO1b2zf6jE 0YOjszTSDbACd+Fb+4VCwDwyev7EWDD4FM+Ilv9hRTsalJy+OXgyA5m6Sb3fHWfZ8qn2 ssDARXe4jVgsyIcvllnHrN6ydb6FXzA5sZ05Lcq6UP3pvELuQGN5dVfAUrGS00bEP2ZA QSorGt2XG5BU0uNs97BuwD+MTDRuBxgpHvJk4UbaHX/UUoa4bP209+/yEX4LlHhLwiaY xKUGIu1IjB1sZiRvilTaP9kiGNXa3eCpXIISIzyqDJjvenDXOw9hZfwYc3mFa2kEWwrE xeuQ== 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=eJqtXgSzypqfdxrhd3LYswSfQimZb/0OHvi98lRNygY=; b=o3MgC24+U7bPv+PLUGvSjoZemIMFn4gBYO7Xz4xbKJuiZqn2r3sVwBXhcbsJlLsK7Y HmQwBuaSMfHCfVbk+zi2Ui5mdwNOKoLm+Van+DwTDh8X8qFATYBaub9lJYqw+IIt2Qr1 VEJiE1AY+94aPSrCGfeuiYOaLVMoU45DBgN4kZTz6iGWrEmHfZM+/mhcy9yjH3u+CNI+ JIotm78ywMavuQkogB49vQvZG4fEbIWT8/HTm5xd9xabCyljxawrYuqbpvjAsvQc743J opTr+inFPI5+MNnCivLq2Cdh4u3SXcIBQJOThDiD4CRzmZaol3QgM0zGZ0tv3K62XNtF Sn7A== 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 t1si6902894edt.171.2021.06.04.18.06.18; Fri, 04 Jun 2021 18:06:41 -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 S231258AbhFEBFO (ORCPT + 99 others); Fri, 4 Jun 2021 21:05:14 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4477 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbhFEBFO (ORCPT ); Fri, 4 Jun 2021 21:05:14 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FxhBv1zPtzYnBg; Sat, 5 Jun 2021 09:00:39 +0800 (CST) Received: from dggemi762-chm.china.huawei.com (10.1.198.148) by dggemv711-chm.china.huawei.com (10.1.198.66) 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:17 +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:16 +0800 From: Zou Wei To: CC: , , Zou Wei Subject: [PATCH -next] power: supply: charger-manager: add missing MODULE_DEVICE_TABLE Date: Sat, 5 Jun 2021 09:21:54 +0800 Message-ID: <1622856114-68189-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/charger-manager.c | 1 + 1 file changed, 1 insertion(+) 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