Received: by 10.213.65.68 with SMTP id h4csp1209240imn; Mon, 26 Mar 2018 03:07:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx48qY+WTqQ7VSHc+3xbrRm4tMdfOjN6PvzyFM3ox79mtvAfKblGlBECAAdeH65opOuWUuweJ X-Received: by 10.98.150.198 with SMTP id s67mr1690239pfk.191.1522058829130; Mon, 26 Mar 2018 03:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522058829; cv=none; d=google.com; s=arc-20160816; b=L0rZlFh3s4ge5ihglJztkilja8pGXKeK/RYktZtO/u1XYtcV/TLCohSfsk407OWVwX vINkpQl0B7goEF5eLKNYs6KigB8MAqKZLGZpfdiMu0ZfsJFnNyo1M0+pgCw7iJ76UxpI 9+eF8BSW5ZQY8BUSm0xcoXk0kYsTKsOVY1+0+mOD9oa87Z3TGYnipDI6f5UaUctfSTaM VkgX/3Gc7Ps/JzvL3pFfXwQXE9rjWfcPPmGV4kKA5LXDz4xDCM/sTHBIVo/EAE+pETnS UVwG39dsRNUW741VyTVhAI1yrex6oFE0IDvjxrHNASULfkXwUZ1XLL1Mwy6bSoqQrZfI ykvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=qV4OQwGHuGXDEkQoCjAcusqBRb74AFAwIlzF9KETE3U=; b=hlwhIWcjkreYw97TbeUNMjQUn2+O/5a5hVz8MC3JnD5DdNQct0axxngkVn7EXM/jkK By2nve9298Sar1HnaWW4UCmTIm4n+acTFIyIm7DW85onbF0c3BYMdZKksjBWu6PtlI/E xRozyoiEzitqhM1CuyzLqqmSHUhe5ybzcO3WvprcUpxhxcTwtus9HMHAw75XNtPsnTPH yU3nb5vLy78jjx1Oy0WK+Qq3MoMGd2ucA3G3TSv4lZ6WPYWTxAzDYO2qpmuw4h0T60BD yrTMo7iG9xNGwwHGqYi5oU8I50G7ZdrAkgKky9ztcrGasNRUsI0zus9UIgl3VC8OIivQ c2Aw== 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 a64-v6si15010571pla.117.2018.03.26.03.06.54; Mon, 26 Mar 2018 03:07:09 -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 S1751249AbeCZKF6 (ORCPT + 99 others); Mon, 26 Mar 2018 06:05:58 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:33455 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751083AbeCZKF4 (ORCPT ); Mon, 26 Mar 2018 06:05:56 -0400 X-UUID: c0163e37f70840f5b88dd3dd5d9b1b3b-20180326 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1546838782; Mon, 26 Mar 2018 18:05:54 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 26 Mar 2018 18:05:52 +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:05:52 +0800 From: To: , CC: , , , Sean Wang Subject: [PATCH] rtc: mt7622: fix module autoloading for OF platform drivers Date: Mon, 26 Mar 2018 18:05:52 +0800 Message-ID: <4231c0b6038764f68324297a40b18b15ecda5a92.1522055289.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 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+r3YkJXBAdPzjyyHhtEk6E+F2VmR+Gkxf6dKQ79DNHqnvI9BuwczFfU4= 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/rtc/rtc-mt7622.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-mt7622.c b/drivers/rtc/rtc-mt7622.c index d79b9ae..147252f 100644 --- a/drivers/rtc/rtc-mt7622.c +++ b/drivers/rtc/rtc-mt7622.c @@ -307,6 +307,7 @@ static const struct of_device_id mtk_rtc_match[] = { { .compatible = "mediatek,soc-rtc" }, {}, }; +MODULE_DEVICE_TABLE(of, mtk_rtc_match); static int mtk_rtc_probe(struct platform_device *pdev) { -- 2.7.4