From patchwork Tue Feb 20 19:37:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10230787 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C09D7602A7 for ; Tue, 20 Feb 2018 19:37:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFA1828402 for ; Tue, 20 Feb 2018 19:37:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A43BC28470; Tue, 20 Feb 2018 19:37:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC51928402 for ; Tue, 20 Feb 2018 19:37:40 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id BED422671A9; Tue, 20 Feb 2018 20:37:39 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0A214267502; Tue, 20 Feb 2018 20:37:38 +0100 (CET) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by alsa0.perex.cz (Postfix) with ESMTP id D1E11266F0D for ; Tue, 20 Feb 2018 20:37:35 +0100 (CET) Received: by mail-oi0-f45.google.com with SMTP id c12so3520427oic.7 for ; Tue, 20 Feb 2018 11:37:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+egBxUdHmox9231I6atXtpFM+CffxAbfmmg7/TJsc80=; b=hq9GsF5djR0LfKV4W8Oe2OG4V0cWHCgVLF3lePApSFHkRrshkCKA3B2gwCPJUSDHLo Ue42yrsisQUH+CGntpDIVnVot8svZdDPus04Ax9cB15I8LElJAjFtmXdDw+fFny9kvcW AQ4dQvyQnrLD86NPvyImZ+iNZFh+bGwT5nLZy2QpoAKRmLSQTTNM/nQR1iM8fzn1sUfl 4F5vyeQ6kF1UZP4QWI7iuSzbtScRmzEeD3marDdRPo14df2F5dHWU+lvzgV3ruc4oBgl O3CzBZioSy4ZFcNdRttpwsc0NlUorQYGUh6n5p/wrjx+KluLJsq2GBsFi7fIDD0FhesM mxlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+egBxUdHmox9231I6atXtpFM+CffxAbfmmg7/TJsc80=; b=IfgpXtsE2VHxUlor5nJvRyqzS63qgbW28AgTYGf2+Qt5Q1wYLhLBcSHpM4O+Lz+xjU 3GlPhRPNDnZ5wgJyj1M2edsU/NxSWz02KYZ0MbcOuKz+lMjChsdHrGhINOGvx/vwAdKv Z9ws53BMyYkTUg/Z7MW2dRdHTBcDFJyASlaWlUd0k49ldTextPULpW6Y6NjOWz1pgJ4D hgEuXn48wMb9kfQLicytexATB7PW6EYNmTXGiV/Mi8LPo4rGKqec+AeyoEnpeTQFZA6D a6fhSuOBEMwxDY6NZ87SwWpYVd5aXUhWzYhJ0X210FH36/nkZiscmUiT5JYlnOlA9cNL isOw== X-Gm-Message-State: APf1xPBdC15YRTAg2C8SDEXOgtksSysB8CVjNHwXhmj//IPKsXnDT3Tr lz0SBRQ0YkofGB3ljGL+Muh35fZCQ+ucqB5C9mg= X-Google-Smtp-Source: AH8x225y7EFYqnFdixzSSIgERdTEMtp7mrOy5vJdhDf9Hjjve9+oHerDaeuVE205Xhl6AnoX6iRATe+9tZCx95bFdJg= X-Received: by 10.202.196.80 with SMTP id u77mr540167oif.9.1519155454469; Tue, 20 Feb 2018 11:37:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.5.137 with HTTP; Tue, 20 Feb 2018 11:37:33 -0800 (PST) In-Reply-To: <99ce1244-6646-6292-2c50-151819b01cfa@metafoo.de> References: <5b591fd8-d4d5-27bb-0850-a376da20d7f3@metafoo.de> <99ce1244-6646-6292-2c50-151819b01cfa@metafoo.de> From: Fabio Estevam Date: Tue, 20 Feb 2018 16:37:33 -0300 Message-ID: To: Lars-Peter Clausen Cc: Nicolin Chen , alsa-devel@alsa-project.org, Mark Brown , Kuninori Morimoto Subject: Re: [alsa-devel] ASoC: Failed to create component debugfs directory X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP On Tue, Feb 20, 2018 at 4:30 PM, Lars-Peter Clausen wrote: > Because on linux-next they are all components now, before one was a > platform, the other a component. So they were created in different > sub-directories. Now they are created in the same sub-directory. Thanks for your clarification. What is the best way to avoid the "Failed to create component debugfs directory" warning? static void soc_cleanup_component_debugfs(struct snd_soc_component *component) Thanks --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -319,8 +319,6 @@ static void soc_init_component_debugfs(struct snd_soc_component *component) } if (!component->debugfs_root) { - dev_warn(component->dev, - "ASoC: Failed to create component debugfs directory\n"); return; } or diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 3987673..270109c 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -329,6 +329,8 @@ static void soc_init_component_debugfs(struct snd_soc_component *component) if (component->init_debugfs) component->init_debugfs(component); + + component->card->debugfs_card_root = NULL; }