Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp194602pxj; Thu, 13 May 2021 02:42:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+Q+CYm6Mki8VIK5YI7aALmlCG/L9ieWlIem12le2MwHZVigwTaQ8ByB1Kn8Iemc7zR/I8 X-Received: by 2002:a05:6e02:1aa5:: with SMTP id l5mr5053399ilv.289.1620898945931; Thu, 13 May 2021 02:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620898945; cv=none; d=google.com; s=arc-20160816; b=cufqQWxmLYVTvl/x+MTSQiLIj0d4+qCsP2vcRqqGwszDkDaHMUQR7i1Er6dfmfoRA1 fFHpsGJ6pGQLsOhVVmooikaSRCDM8k2CPtpRIRv967wdcbYr6HOLbdNNgIbHhsyMkfKB 3j15X56lKTZNnetxV/cz9PLyrYdARUpWcDOdSbwWgjuD5sgbZllVWXF6I0xCPrtIztmg SVUjcEdKgw5bKcjMVjUr8/yW/QHjBaTm2H/lP6mPp7AMHa+jQrW70zOZJQS0f0Ot2Jew lsq5Q2LHjuhnMTOaYOmwqXMTEo2gjShTEyFYbBF5GnTudmzpVCVOhgj4CV/xng69ayB1 RV8g== 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=bxggwAxqi67g/ppQfGPuRsL4DJDRzgNCYMJVjeI1Qu4=; b=CQZI4zQg0nSAKfYu2I2Dk+5a+9axloKjyz1FtzFhnfE4WCGdw+jf9p/jrpUiIIU3qt HleT9RHbS2OqxjT3KmlFxYDrq16K6FNMBKH0c0c27ihXa8bKlSyIGAgG01jItOmtYKSg Qlm6kPgvdQob631MIukesOPB4EAH4HJWe1v6/KSkVdQnhQnAQn5XHuFSZGuXGq7onjwz Rzwxq8T/jiyKTOi8z/22fMj+sFSuVkYACE4VR7Xs9ErgI7lv8dl4wdMKBnDKdkKUN6eD u0NNR+xXZH4YiqMe5BKPYzsdPuCMTQC+NGANQTZdUiAUgohUTNBeVe0mJFUwYAhUSBri O6Eg== 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 k11si3202505jap.38.2021.05.13.02.42.13; Thu, 13 May 2021 02:42:25 -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 S232063AbhEMIl6 (ORCPT + 99 others); Thu, 13 May 2021 04:41:58 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2719 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231393AbhEMIlw (ORCPT ); Thu, 13 May 2021 04:41:52 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FglR85HF5z1BGhb; Thu, 13 May 2021 16:37: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; Thu, 13 May 2021 16:40:28 +0800 From: Zou Wei To: , , , , CC: , , , , Zou Wei Subject: [PATCH -next] fsi: Add missing MODULE_DEVICE_TABLE Date: Thu, 13 May 2021 16:57:29 +0800 Message-ID: <1620896249-52769-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/fsi/fsi-master-aspeed.c | 1 + drivers/fsi/fsi-master-ast-cf.c | 1 + drivers/fsi/fsi-master-gpio.c | 1 + drivers/fsi/fsi-occ.c | 1 + 4 files changed, 4 insertions(+) diff --git a/drivers/fsi/fsi-master-aspeed.c b/drivers/fsi/fsi-master-aspeed.c index 90dbe58..dbad731 100644 --- a/drivers/fsi/fsi-master-aspeed.c +++ b/drivers/fsi/fsi-master-aspeed.c @@ -645,6 +645,7 @@ static const struct of_device_id fsi_master_aspeed_match[] = { { .compatible = "aspeed,ast2600-fsi-master" }, { }, }; +MODULE_DEVICE_TABLE(of, fsi_master_aspeed_match); static struct platform_driver fsi_master_aspeed_driver = { .driver = { diff --git a/drivers/fsi/fsi-master-ast-cf.c b/drivers/fsi/fsi-master-ast-cf.c index 57a779a..70c03e3 100644 --- a/drivers/fsi/fsi-master-ast-cf.c +++ b/drivers/fsi/fsi-master-ast-cf.c @@ -1427,6 +1427,7 @@ static const struct of_device_id fsi_master_acf_match[] = { { .compatible = "aspeed,ast2500-cf-fsi-master" }, { }, }; +MODULE_DEVICE_TABLE(of, fsi_master_acf_match); static struct platform_driver fsi_master_acf = { .driver = { diff --git a/drivers/fsi/fsi-master-gpio.c b/drivers/fsi/fsi-master-gpio.c index aa97c4a..7d5f29b 100644 --- a/drivers/fsi/fsi-master-gpio.c +++ b/drivers/fsi/fsi-master-gpio.c @@ -882,6 +882,7 @@ static const struct of_device_id fsi_master_gpio_match[] = { { .compatible = "fsi-master-gpio" }, { }, }; +MODULE_DEVICE_TABLE(of, fsi_master_gpio_match); static struct platform_driver fsi_master_gpio_driver = { .driver = { diff --git a/drivers/fsi/fsi-occ.c b/drivers/fsi/fsi-occ.c index 10ca2e2..f9a8808 100644 --- a/drivers/fsi/fsi-occ.c +++ b/drivers/fsi/fsi-occ.c @@ -635,6 +635,7 @@ static const struct of_device_id occ_match[] = { }, { }, }; +MODULE_DEVICE_TABLE(of, occ_match); static struct platform_driver occ_driver = { .driver = { -- 2.6.2