Received: by 10.213.65.68 with SMTP id h4csp1210576imn; Mon, 26 Mar 2018 03:08:47 -0700 (PDT) X-Google-Smtp-Source: AG47ELvXU4m9UrKka+pmpmMZsTjQ10gEN8A76Yc5E8xDnPd9DnXE5HzWXfGt2o49kSDUpgJTWijb X-Received: by 2002:a17:902:6b89:: with SMTP id p9-v6mr15087954plk.265.1522058927914; Mon, 26 Mar 2018 03:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522058927; cv=none; d=google.com; s=arc-20160816; b=F+308kqmhDHo+diV5d7ghGZUyNtLem5y8E3c5ygy+Ly4G9YI8GMq5KnED33DlQHrWl 3p7waJwva/+fiyd0eNALh6fvHtVJGLR4qMYamgYGrR/HbMmUu+YYdz+mNH957i1/x6If /ELs7YzpPxFnBCvMBITdoRvKEIC/q9pNYrlb0TO5A5dbvKOsBP04ZsvUxtE8eZI4qUf+ HYKbj6mYI7d31dTh5CIg04lOSFNfVsFErl1CbamPHoC4+wAGjq3QId5ftF3PTqLo26v5 JRvBbDARAo84grFuy6FNE+/tTyP8ORl4FpEJwGNQysaklRdTWb0XnlF/4XHd3nW7AGUn Q6rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=fN/jiJX8VqFsGC8rwDzRfIjsxl0S2gGQwNOp9tqAHb0=; b=Z4vaJdSF2YYnwtF7z6eTNWTveo9dBN2O9tpriUnKy2g7zLzVBC7nlDIWgJfKR+Gk8j PQToofHXrsLSKty+evyftcPhBwZ0WlZb2bFQ/DROfPn/GVBQk5wNU4QC/E9nFFqA6vCn 5McY1GdYBRuIsmkNuIQB/LRm/qO9ujR/slxYR1bNgqPFnONKrMBDhV2uqFRxcnXgg881 Bt8zgGI8uZ+VHzW4w8C7bj7pCfKhH8K67lkokDpu7FMQeS7Ihs4YUGckZHYXkvlQeHyj 5UoovH5pGGdKEYZH9+PzBcuj4JNXqMGXzzSylMOQcU1xTXtqjf5aSe9vKLda2ztii3q9 5FGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8-v6si12332650ple.556.2018.03.26.03.08.33; Mon, 26 Mar 2018 03:08:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751793AbeCZKHg (ORCPT + 99 others); Mon, 26 Mar 2018 06:07:36 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:12779 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750973AbeCZKHT (ORCPT ); Mon, 26 Mar 2018 06:07:19 -0400 X-UUID: 9bd82568a8c04e8892a6034fc1016dd0-20180326 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 795974485; Mon, 26 Mar 2018 18:07:14 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 26 Mar 2018 18:07:12 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 26 Mar 2018 18:07:12 +0800 From: To: , , , CC: , , , Sean Wang Subject: [PATCH net 2/2] net: dsa: mt7530: fix module autoloading for OF platform drivers Date: Mon, 26 Mar 2018 18:07:10 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <2497321afc9156f7954e813721f60a0a95c03bd2.1522057659.git.sean.wang@mediatek.com> References: <2497321afc9156f7954e813721f60a0a95c03bd2.1522057659.git.sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-12.5.0.5042-8.2.9001-23742.005 X-TM-AS-Result: No-7.409400-8.000000-10 X-TMASE-MatchedRID: 7hMzTBgpbgRb8Ol7R+ysio9hRjNfZeOXqnabhLgnhmin5yDc9PwlXG9z j16rJNcqfgo+DupGOmFiSVnIdboij5Coy9iDotiwngIgpj8eDcBpkajQR5gb3savT21DsLD/UEh Wy9W70AEgBwKKRHe+r5ytNT9yrUbMITnJCyPuO5fDphoLRlapHtAAbwh7dxkGD3jldR8wNhM= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--7.409400-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23742.005 X-TMASE-POSTMAN: 2-d; X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang It's required to create a modules.alias via MODULE_DEVICE_TABLE helper for the OF platform driver. Otherwise, module autoloading cannot work. Signed-off-by: Sean Wang --- drivers/net/dsa/mt7530.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index d31246c..4e53c5c 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -1409,6 +1409,7 @@ static const struct of_device_id mt7530_of_match[] = { { .compatible = "mediatek,mt7530" }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, mt7530_of_match); static struct mdio_driver mt7530_mdio_driver = { .probe = mt7530_probe, -- 2.7.4