From patchwork Fri Jan 20 13:20:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 9528375 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 1921F6020B for ; Fri, 20 Jan 2017 13:38:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AFF1285B8 for ; Fri, 20 Jan 2017 13:38:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3FEA285D4; Fri, 20 Jan 2017 13:38:31 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,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 30EB5285B9 for ; Fri, 20 Jan 2017 13:38:30 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 638F4266B71; Fri, 20 Jan 2017 14:38:29 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 51BFB265A82; Fri, 20 Jan 2017 14:36:09 +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 7334C266C4A; Fri, 20 Jan 2017 14:20:19 +0100 (CET) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by alsa0.perex.cz (Postfix) with ESMTP id 7FB87265A82 for ; Fri, 20 Jan 2017 14:20:15 +0100 (CET) Received: by mail-lf0-f53.google.com with SMTP id k86so57984914lfi.0 for ; Fri, 20 Jan 2017 05:20:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Ayi24xiTwZTLj2TYrEhOKQORTPrl91hZco0YoykWcc0=; b=JOjobh4c+KtKQvho16MXj1p1h5hY37VvM2QO2ay3LFWQv6OscckehM5mGaqnqQI6nh ZdXdX2Fs3w7SUDeclAl1CC8BWqclQgO7kvQu9ltCF9QnwQ/5lvwZT48TYQMvDpOegSLy m+w+FeL+KBo5xGXZIp0tZrjo67K9HVnJtMwWk= 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; bh=Ayi24xiTwZTLj2TYrEhOKQORTPrl91hZco0YoykWcc0=; b=OS8Gg6TdoAvmYhSCkxA307GYGdevqKAOb17FNuj9ubmNnnaGOTF8vPd+lEiNxENgD7 ke7CaAHNsa3c8S1PfPMwtmP5IhQ/ej1TPq2bhRESr0tMWYwC/2LU058N9ZVMAT4RhwAQ +8OBlhPFnLaK4qjo6gj79V0fXw60g6Mrs5FprWDI5zfxP03phKPK0CFYUI4UvWf7Z1H1 zJyL9y95wDTYWOaSbkjgGv/1+JuYfYK1i+/D5snfEO86UC+siKH0TQeUxJkIR7bKmFGs IO6dxHXi0CwUNl3ykp2hQte1kEk3jnsjYuLid0IRFoePOENIqUcod3/8y64AOtDXoWPC wObg== X-Gm-Message-State: AIkVDXJ/1c5jY5RLWu6oNN/TTVJhLWIulPjrpnivBdNQuQaWWoGRTCRCzRqf1+3VAzYlFt5y X-Received: by 10.46.22.6 with SMTP id w6mr6277779ljd.31.1484918414751; Fri, 20 Jan 2017 05:20:14 -0800 (PST) Received: from gnarp.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id u126sm3449473lja.25.2017.01.20.05.20.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2017 05:20:13 -0800 (PST) From: Linus Walleij To: Liam Girdwood , Mark Brown Date: Fri, 20 Jan 2017 14:20:11 +0100 Message-Id: <20170120132011.1147-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Cc: alsa-devel@alsa-project.org, Linus Walleij Subject: [alsa-devel] [PATCH] ASoC: ux500: do not moan on deferrals 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This removes the "error" print on probe deferral, it's unnecessary and confusing. Also cut a few debug prints we do not need. Signed-off-by: Linus Walleij --- sound/soc/ux500/mop500.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c index ba9fc099cf67..c5a9e98ddd7f 100644 --- a/sound/soc/ux500/mop500.c +++ b/sound/soc/ux500/mop500.c @@ -103,8 +103,6 @@ static int mop500_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; int ret; - dev_dbg(&pdev->dev, "%s: Enter.\n", __func__); - mop500_card.dev = &pdev->dev; if (np) { @@ -113,22 +111,12 @@ static int mop500_probe(struct platform_device *pdev) return ret; } - dev_dbg(&pdev->dev, "%s: Card %s: Set platform drvdata.\n", - __func__, mop500_card.name); platform_set_drvdata(pdev, &mop500_card); snd_soc_card_set_drvdata(&mop500_card, NULL); - dev_dbg(&pdev->dev, "%s: Card %s: num_links = %d\n", - __func__, mop500_card.name, mop500_card.num_links); - dev_dbg(&pdev->dev, "%s: Card %s: DAI-link 0: name = %s\n", - __func__, mop500_card.name, mop500_card.dai_link[0].name); - dev_dbg(&pdev->dev, "%s: Card %s: DAI-link 0: stream_name = %s\n", - __func__, mop500_card.name, - mop500_card.dai_link[0].stream_name); - ret = snd_soc_register_card(&mop500_card); - if (ret) + if (ret && ret != -EPROBE_DEFER) dev_err(&pdev->dev, "Error: snd_soc_register_card failed (%d)!\n", ret); @@ -139,8 +127,6 @@ static int mop500_remove(struct platform_device *pdev) { struct snd_soc_card *mop500_card = platform_get_drvdata(pdev); - pr_debug("%s: Enter.\n", __func__); - snd_soc_unregister_card(mop500_card); mop500_ab8500_remove(mop500_card); mop500_of_node_put();