From patchwork Wed Aug 29 15:00:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 145442 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp777919ljw; Wed, 29 Aug 2018 08:01:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYqVehzNWh4pjFNvjKlYfMeydaMiKvX7tLcziQOgTqIaUAwcjuo6yty+OPQbEFNpiMXx6+5 X-Received: by 2002:a63:de10:: with SMTP id f16-v6mr6046177pgg.97.1535554874726; Wed, 29 Aug 2018 08:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535554874; cv=none; d=google.com; s=arc-20160816; b=ZSsujAy5MANjmkawf4U9D4Y0Bsap2bctYxsKDNBun4qaTvLdqhYB7aU1N/g3B8DaUQ 3WixYqqXdoWFYjK4a1p4EjXKKYDUFaLZejYry1iQdD5jpzhac1KJy4PRMC1aAQVTagz7 TQHNc/m/zUypkM/ZJ4KSkHtzgM/2TFfevlIYVsoUgzj6f8j+da0N44cbwrBLPufOwHkr ENlOWtMFlFXy2vPZ7VUp1wB+AqQHIlNnRR9n2v2N2v92bD3vqNMkpiDg7WDE/ocdysoo rYOlAsura3BiMCkb/gZzZQmFxQslhw/wVEaeoTswWr4KFdl0SKqEFGVWyc7LE4t+ldz4 k1qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=uUbMF3nMXRw/+9rZqOfjCDmKj73BdEnRsLVytA1Yk6Q=; b=uHY6KKa/5vWpAHwQKquQSWWuIp8kaif5KWJ1M5FiY+ly97PYJy0dL9B89/Ut14+Wt/ RpynNlzsKMWSfSA7PAXrJx7JgiuGhsN/0b3gob8WFLsqLdPs9oMMyjLz9zf7Fgi8OVLq GZN+4UJqMNyfXAF1LhgGbUpCqblWP81aSL5P4qOyEbMz0uGJUe9hZyKfjJE2pr6BHu5H ESQFO/39fSVNi73iF5An8qgg5jRrlt44hRpUp8eV1Lk7xhRrHWLO1KwVo1lHF3qTUpeM rTg0gZRQBBRh1KqzqqT3NHAR+vPZMFMWQOqBsOtiDtmvnKspiwoAsrPCXR4p3Ixi7ZbK WmhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=0qD3Raki; 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 v127-v6si3978574pgv.89.2018.08.29.08.01.14; Wed, 29 Aug 2018 08:01:14 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=0qD3Raki; 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 S1729035AbeH2S6X (ORCPT + 32 others); Wed, 29 Aug 2018 14:58:23 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40150 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728678AbeH2S6W (ORCPT ); Wed, 29 Aug 2018 14:58:22 -0400 Received: by mail-wr1-f67.google.com with SMTP id n2-v6so5140292wrw.7 for ; Wed, 29 Aug 2018 08:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uUbMF3nMXRw/+9rZqOfjCDmKj73BdEnRsLVytA1Yk6Q=; b=0qD3Raki6lB/dZdEao0Ktml94uXot/dSS2tppB4k29vIR+pPbhOxyo7/ThW4SPQRFN PbvK+G9wfCmlbu4OZKsZsk01A7I8QrqN+8t1/XrHvM0iC4IO6aS5RWGZ7APzw5E4Bgyr be7kof5G/dnfyuUXiodeJSUHC7+6ns0SVX1/Dz+9wduczCnWEO/+8Lhu21Y54dQxLEbc OOs1ntOO/mJcoMiFZNLWrFQUFi8/3ghJZrB+G0bq0pl9sIBCjv+kZHUmgfm7aBpfPK+B jpqL0GfqFexxko70eCdQCrL0KxCyysMFhG7tO1MeSUhXzFiuXmrlPBfXDk0fBJnW7UQW rghg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uUbMF3nMXRw/+9rZqOfjCDmKj73BdEnRsLVytA1Yk6Q=; b=SgKdjwfNv11iT2vof9mPffQZAtIjworflJfEBrIVzn3xm/DdUQk6baxWEA9osoTxal jTcAkVg/4HPaTzxmyYFKmmf+p3psZO2Zozp6Ckpj4UHDMxjQd6kIp7TxqnRM0AjbL4gY 5bIgOCy+Io+8oNkCTcmiuAlWVKzw20XXTaq0uRWtNofZAyUnsWJkllnbvf5QcKyAmb4H jEVn0GjFDGvK/wmprXQhIHE46JnggqjVcJnRnH3Pb4O9C93iissdx6L7DnNmedFE4Leb gEtHldjpoJHdzWpId8FUbAtxKP94ALei5iRpOFg08hAyllDftVqIBK4sogSCUz/tTOyv PtUA== X-Gm-Message-State: APzg51AoP7bpOpIrC7OcRvOaOV6SRMDnIs84hg/jWOOrGvX0OczNPQ9j tAe7oVg+TQQu0wv+BjCYj4HgVA== X-Received: by 2002:adf:9101:: with SMTP id j1-v6mr4638185wrj.3.1535554860163; Wed, 29 Aug 2018 08:01:00 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id v46-v6sm7267217wrc.63.2018.08.29.08.00.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Aug 2018 08:00:59 -0700 (PDT) From: Jerome Brunet To: Mark Brown , Liam Girdwood , Kevin Hilman , Carlo Caione Cc: Jerome Brunet , alsa-devel@alsa-project.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] ASoC: dmic: add DT module alias Date: Wed, 29 Aug 2018 17:00:49 +0200 Message-Id: <20180829150051.18190-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180829150051.18190-1-jbrunet@baylibre.com> References: <20180829150051.18190-1-jbrunet@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Before this patch the only alias provided by the dmic module is: alias: platform:dmic-codec Device instantiated from DT will not probe automatically with this After this patch, here is the new alias list: alias: platform:dmic-codec alias: of:N*T*Cdmic-codecC* alias: of:N*T*Cdmic-codec Now the dmic codec probes automatically when instantiated from DT. Signed-off-by: Jerome Brunet --- sound/soc/codecs/dmic.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/sound/soc/codecs/dmic.c b/sound/soc/codecs/dmic.c index 8c4926df9286..71322e0410ee 100644 --- a/sound/soc/codecs/dmic.c +++ b/sound/soc/codecs/dmic.c @@ -148,6 +148,7 @@ static const struct of_device_id dmic_dev_match[] = { {.compatible = "dmic-codec"}, {} }; +MODULE_DEVICE_TABLE(of, dmic_dev_match); static struct platform_driver dmic_driver = { .driver = {