Received: by 10.213.65.68 with SMTP id h4csp1212024imn; Mon, 26 Mar 2018 03:10:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELswDJ4XDWEDIqp8TXtJVPKfVtbdxv8VMjQKZlY5kJOiMRSPPMZFWdYLAtLOpZZGl3K1cAnc X-Received: by 2002:a17:902:d886:: with SMTP id b6-v6mr34092169plz.254.1522059052976; Mon, 26 Mar 2018 03:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522059052; cv=none; d=google.com; s=arc-20160816; b=Y+LPGR711paUT/sQ5AL+CSX6L6Kgldk+9xTJ1HwaNKYafNahPzeJxKzaVt2dJZ7JCs OFZrxQUW9M22ZZ4qO5XEgerX/iCpcpNGap9HzFoU8joCVl01TFshSfCnHMulVQL3XLX9 TrbEDLqlo9TYevW7Ma7WWlaqjN7nfNeCRHZ5nfMwaYBWXgZCXQVoOlCxxRS1xg12XZm3 LzZQOIfH3NO/WMFATlTiMlAWxOwnrUKEuNJU6TKjzT86o6dxabZJQ/Nn8f2ki9aaTt9/ etB+o6gDbIQllagWjwhQCYdrQ6FsEnNK4aLAtAJfJs08q4dPZE6BSwOT5NEiafTjN8Kb pDGw== 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=e2BFiIDEJJedah9ggJg2zhOn0M7euKsZ/igDghz0QWs=; b=PRB/Ncv1OuoVOBJqS49DMsL8Ct10VimEuA88knnxQqr2202oX0u9y1REPRlpX3o91m KJh/H4B5KPK5BzeN5TdyVvn9HD3yhvb3KqNCNOLFJzg9p98j1CY8i21jmKLUU256gUir XWSmrHUlXDPKYNIn65DdjRk92ie7ug2BQPjObWnuUBudCo/2NZi0u6/rIt/4lufUMGwS QjtM6ZTojSwEfofOrCtnMYEpwTGQnceCeelnND4Ve4ldKAk5zgViEPnaitGbxPkz4Zr7 i2v5vyY7SJ4HaF3YUPf4esLRwz5mwmzj6neSpxTkEh2tqGmY2jkVdXzcqKLACAZCMqoa agQw== 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 w2-v6si15063758plk.702.2018.03.26.03.10.38; Mon, 26 Mar 2018 03:10:52 -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 S1751150AbeCZKJr (ORCPT + 99 others); Mon, 26 Mar 2018 06:09:47 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:29627 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751195AbeCZKJp (ORCPT ); Mon, 26 Mar 2018 06:09:45 -0400 X-UUID: 277b26a35e9b4436a64cef6ca6e3a6e9-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 668771567; Mon, 26 Mar 2018 18:09:41 +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:09:39 +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:09:40 +0800 From: To: , , , , , , CC: , , , , "Sean Wang" Subject: [PATCH 2/2] ASoC: mediatek: fix module autoloading for OF platform drivers Date: Mon, 26 Mar 2018 18:09:38 +0800 Message-ID: <7b8f10225cef6aef8c623c2c5ddc0a95bce247aa.1522055433.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: 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-8.995300-8.000000-10 X-TMASE-MatchedRID: 7hMzTBgpbgRb8Ol7R+ysio9hRjNfZeOXqnabhLgnhmin5yDc9PwlXG9z j16rJNcqfgo+DupGOmFisDrIDgWLgG94Ipa1otxo4pdq9sdj8LUPpxts1MstxJsoi2XrUn/Jn6K dMrRsL14qtq5d3cxkNQ5+9o6t2XiCWI9oT5ykJndyq1uhWUTwg5m/vVrGG9lpIfAtZfk6QQ3Avp LE+mvX8g== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--8.995300-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 --- sound/soc/mediatek/mt2701/mt2701-cs42448.c | 1 + sound/soc/mediatek/mt2701/mt2701-wm8960.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sound/soc/mediatek/mt2701/mt2701-cs42448.c b/sound/soc/mediatek/mt2701/mt2701-cs42448.c index f664b9d..d37a6e1a 100644 --- a/sound/soc/mediatek/mt2701/mt2701-cs42448.c +++ b/sound/soc/mediatek/mt2701/mt2701-cs42448.c @@ -391,6 +391,7 @@ static const struct of_device_id mt2701_cs42448_machine_dt_match[] = { {.compatible = "mediatek,mt2701-cs42448-machine",}, {} }; +MODULE_DEVICE_TABLE(of, mt2701_cs42448_machine_dt_match); #endif static struct platform_driver mt2701_cs42448_machine = { diff --git a/sound/soc/mediatek/mt2701/mt2701-wm8960.c b/sound/soc/mediatek/mt2701/mt2701-wm8960.c index a137057..cbee02e 100644 --- a/sound/soc/mediatek/mt2701/mt2701-wm8960.c +++ b/sound/soc/mediatek/mt2701/mt2701-wm8960.c @@ -153,6 +153,7 @@ static const struct of_device_id mt2701_wm8960_machine_dt_match[] = { {.compatible = "mediatek,mt2701-wm8960-machine",}, {} }; +MODULE_DEVICE_TABLE(of, mt2701_wm8960_machine_dt_match); #endif static struct platform_driver mt2701_wm8960_machine = { -- 2.7.4