Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3233203pxj; Mon, 10 May 2021 23:01:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiZ9Wyt6rzKKDFfZdxZPmuBHw7OshJFyhKYBe9MXKKw+OaoQcSJDRu99a2Dy3txiaj0ZlT X-Received: by 2002:a05:6e02:790:: with SMTP id q16mr19381156ils.263.1620712908142; Mon, 10 May 2021 23:01:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620712908; cv=none; d=google.com; s=arc-20160816; b=uFZc75X5SWF/wphU7x6NyBoKU21sxCOBpr9xJmlruiZL2k8yqWTJdprlWZ/36ODVqn v0IaKZEY07OUl0fWo9wAm7LDhY2NqEDVPtzsHIJmau1KROR6bkBIiqYEkyct01rPRWRu rRpToE8wyPWQKZxPtS3tHWzT7p/DroFL2P0VAV60iJu0WuIA28VzCy0kr13frQ/iGJDP yiYAphZuON0XhbAAJ0OU54KQ38RSo1maRDDj+Iw+f1P3V6gY9Wykp3YodZfOlqnon26B eMVnhoc/A+7Tk8shBvzKjiCrRL86hr94sLRK482uacglt++S3PMhYNUrHWwYMcfYll3l PuQA== 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=vCx4sILql0N3gUH67guAzOf5DKGX3YwA2xzTKSlF1qA=; b=guQ1FxzwT8l+HhvdX7vw4ZwEOloGeHUqEu75zl4u+ThrKwXY0CqC0PWAZtc95UQr9C r8AycGJ0msOrn+3ih88darhiEx1ekoOlhmofi783VrB+ps4gAI3TtUMx8XV7PwWuSUpu w/rne65l4/LJZe64V4O7QnUpuFqSKVoBpW7qAvKVuzCT5TvyP8ISrCcALbftYfiIypHh ma8fGEqrAhPvXs5JKBrnyFZumBN/5wpamsBWrVWEsSOElnBrIFdmmhWrDOLsniWt8Z8n gS5yd9dGpgYiDlMiHjpZA2ImIRkVR9kcEcf1yuI1MRwHdWOYPJM3Op4dxSDr7bwMLcq9 icQA== 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 q4si18696264jas.111.2021.05.10.23.01.34; Mon, 10 May 2021 23:01:48 -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 S230252AbhEKGB1 (ORCPT + 99 others); Tue, 11 May 2021 02:01:27 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2617 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbhEKGBZ (ORCPT ); Tue, 11 May 2021 02:01:25 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FfRyJ6788zPvqh; Tue, 11 May 2021 13:56:56 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 14:00:11 +0800 From: Zou Wei To: , , , CC: , , Zou Wei Subject: [PATCH -next] power: supply: sc2731_charger: Add missing MODULE_DEVICE_TABLE Date: Tue, 11 May 2021 14:17:12 +0800 Message-ID: <1620713832-106431-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/supply/sc2731_charger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/supply/sc2731_charger.c b/drivers/power/supply/sc2731_charger.c index 335cb85..288b798 100644 --- a/drivers/power/supply/sc2731_charger.c +++ b/drivers/power/supply/sc2731_charger.c @@ -524,6 +524,7 @@ static const struct of_device_id sc2731_charger_of_match[] = { { .compatible = "sprd,sc2731-charger", }, { } }; +MODULE_DEVICE_TABLE(of, sc2731_charger_of_match); static struct platform_driver sc2731_charger_driver = { .driver = { -- 2.6.2