Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4094587pxj; Tue, 11 May 2021 20:16:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3ppWnhqrL+tmtPoBo7AOVTfC4Xuu7mh5ecRCMD+E5v08zkrKNjaN0CN9zwZtfccOjDa6q X-Received: by 2002:a05:6638:101a:: with SMTP id r26mr30277624jab.15.1620789386369; Tue, 11 May 2021 20:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620789386; cv=none; d=google.com; s=arc-20160816; b=Az4OQAtUMXgVg3WW08hB8b4qk8FIsKX+tYIeRKmGcccG7r6V05fr6emErWekzKdkXa zsGnS0o6m8ztxZA3uPabb4Sga2wn2MBfMOaJ1dwi/I49BFX6dRBPDyyqqpnpT8+jJ0md 5zxgtTDwtN7XScLBv6Um7KMfDJlUh7GJLbZetpKfwmSm8vM3L1TwIbweCatNnQNcVTdS VZsjTCwLeyvTmTWOvrUyjgoJakoR6P7TpTyluumpEFjSdz1/jcyFRqtg3wzVsNf+b3WO XAsEguOjT+OhMBqEDdvsShxsHelc/1/wzFAky9ZFYGkP0rw4KYBIV95MhgGAJLdzmQDx ahBQ== 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=Cl0weusvgrpHQfIgPYLoJNF/se4CGE6QSPj63JRcBuM=; b=x9YQ3tkZw4Y1K2X353Nl5LGm7Ad3Oqv3KCvqcbIjWfD3Z1jNLcr/bwdXJhme8sTz4I 8Qi9q87HrLGNNGgrMXVbFdVYLJJfrnXmwoL8wCJT86gwsn9foqsXMnjBQ4lqfKMY3eW2 Dtly0AJLXSaHCspX56h/1wizSFowp0ixLUm9rA0f9PFNLgKxlHzfXkf2kblyro8YiuaJ 3m2Gt1Q2FGW/eaudfcBE9syVvMQAX8HMcv+Z71wwlVASxqz0Vh6mOKguFIBbX+v+I7rY VWpkRDDMGhwsRTDTZ6udwyVK2KCJ8PLij9jYmKZx+bJt7icAHpu7CiZH2xZFA5/GMkhy csyg== 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 c2si20814706ilr.77.2021.05.11.20.16.13; Tue, 11 May 2021 20:16:26 -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 S229996AbhELDOV (ORCPT + 99 others); Tue, 11 May 2021 23:14:21 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2711 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbhELDOV (ORCPT ); Tue, 11 May 2021 23:14:21 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fg0Cq04crz1BLWk; Wed, 12 May 2021 11:10:31 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 11:13:03 +0800 From: Zou Wei To: , , , , , , CC: , , , , Zou Wei Subject: [PATCH net-next] net: mdio: Add missing MODULE_DEVICE_TABLE Date: Wed, 12 May 2021 11:30:04 +0800 Message-ID: <1620790204-15658-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/net/mdio/mdio-aspeed.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mdio/mdio-aspeed.c b/drivers/net/mdio/mdio-aspeed.c index cad8205..bb9933f 100644 --- a/drivers/net/mdio/mdio-aspeed.c +++ b/drivers/net/mdio/mdio-aspeed.c @@ -141,6 +141,7 @@ static const struct of_device_id aspeed_mdio_of_match[] = { { .compatible = "aspeed,ast2600-mdio", }, { }, }; +MODULE_DEVICE_TABLE(of, aspeed_mdio_of_match); static struct platform_driver aspeed_mdio_driver = { .driver = { -- 2.6.2