From patchwork Thu Mar 25 09:19:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qinglang Miao X-Patchwork-Id: 12163465 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D234C433C1 for ; Thu, 25 Mar 2021 08:50:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EBF1361A1A for ; Thu, 25 Mar 2021 08:50:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229533AbhCYIuI (ORCPT ); Thu, 25 Mar 2021 04:50:08 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14473 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbhCYItm (ORCPT ); Thu, 25 Mar 2021 04:49:42 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F5dz01hsXzwQnx; Thu, 25 Mar 2021 16:47:40 +0800 (CST) Received: from localhost.localdomain (10.175.113.32) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.498.0; Thu, 25 Mar 2021 16:49:30 +0800 From: Qinglang Miao To: , Florian Fainelli , "Andrew Lunn" , Vivien Didelot , "Vladimir Oltean" , "David S. Miller" , "Jakub Kicinski" CC: , , Hulk Robot Subject: [PATCH net-next] net: dsa: b53: spi: add missing MODULE_DEVICE_TABLE Date: Thu, 25 Mar 2021 17:19:54 +0800 Message-ID: <20210325091954.1920344-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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: Qinglang Miao Acked-by: Florian Fainelli --- drivers/net/dsa/b53/b53_spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/b53/b53_spi.c b/drivers/net/dsa/b53/b53_spi.c index 413158275db8..ecb9f7f6b335 100644 --- a/drivers/net/dsa/b53/b53_spi.c +++ b/drivers/net/dsa/b53/b53_spi.c @@ -335,6 +335,7 @@ static const struct of_device_id b53_spi_of_match[] = { { .compatible = "brcm,bcm53128" }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, b53_spi_of_match); static struct spi_driver b53_spi_driver = { .driver = {