Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp951952rwb; Wed, 14 Dec 2022 05:01:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ZNd5uFhF3pvNZffoj3rdyzwFysTCgyfwV6WaNU+TrUItxOXdqI7CR9U6wovCN7Ln4SHlb X-Received: by 2002:a17:906:7116:b0:7c1:8450:f963 with SMTP id x22-20020a170906711600b007c18450f963mr10185196ejj.34.1671022862006; Wed, 14 Dec 2022 05:01:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671022861; cv=none; d=google.com; s=arc-20160816; b=paHi6F2dnDVOg3IgcXrzMOllriNtZquPnxVLF4rsIchYz+r5y56H/LHyVuazoZNbzd tYYOe217SNVTByMdF9aUh9kti/CMj/JxkLl1QUXj0bS71P0xijJ56T2TN7hgpdqyMec1 tuqUwyjjssVdMfK7hVl1GoOf6jsAEHCALix8qN36mH17EeQkaQuvnGDvxfe6GPZXN9s7 Pfm4nOUbZ47I3FCXSxuG5wESOh8x5VCJ8ba0BgvESykuvuCpGQmo/+kxLaWpWzmMOjLf jjmC99PnApsZceQaoitDuBBOy3UzxMuQ15HFAwjt5e3L79fNjxqAO1Ow7g5hHbZ+e6BB VLKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/73in4YIE8G8CYnWx0Er3I9VVvTCTYIHLYd83My0KlQ=; b=pCv6Kz1QLN5nh4YBm8UmrCaPfbLbBX1HXXwdRYWJF1O5o1LhAMqwgoPgO1goSIr9Z7 lYK7pO7ri+gCBzut8FFgHpJK4RTKS3TRXwpiAqE9HlQfiadJtC/roat8tL+xa8GH8EMK +8z0ZVGwpf50CC6i7z8K17vNeEOt6v2Bdr9BnSB+qAh1EpYsX3hhzjZhlDt5sO9c24Oz MUgU09yzqTd6U9vixRNrm0bCwES6d2dNIVALLy6NEy5Nl7HCpXD8h9puNzCYbH1H/LdE jZJJFpOGM54+yzbZFJSJtC/+y9F3P3SieriEv0PFNXC/de8Yvsl7d1jDSI77pYzpktYX 1iOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=y1lyj8rz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc31-20020a170907169f00b007bc5528a4d7si12500864ejc.47.2022.12.14.05.00.31; Wed, 14 Dec 2022 05:01:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=y1lyj8rz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238297AbiLNMjs (ORCPT + 69 others); Wed, 14 Dec 2022 07:39:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238280AbiLNMjY (ORCPT ); Wed, 14 Dec 2022 07:39:24 -0500 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7150E1EEDA for ; Wed, 14 Dec 2022 04:38:07 -0800 (PST) Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 3F7BC85104; Wed, 14 Dec 2022 13:38:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1671021485; bh=/73in4YIE8G8CYnWx0Er3I9VVvTCTYIHLYd83My0KlQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y1lyj8rztDUuWEwQvfddAazUNzjyPhv/ZgvWDuX5GQCWDOp3PCgGI1rbRYGxFtsu3 QFYHzd4roZ/kNz6LwXfmJv6YvE9wvRQEaiFKwoyJSfyU+3zN1s2YEbUWAt+KOYvhuc p2mLHdtMOFJm+vKFyvwyosBmLApcxNNTYfdJXbq27gvmh28aKAAC9xvLAxQu1R4lOa KwtLykZhJc4yy4EkrM5J7pJhwy3eajOTRDufW6MFXFyXy8mydRkMRjWvPLc2jvIa7Y TXL9iGNDHv3M1/z9mz7N11xQIAYC/aqtuDglNmpI74DZ5bR2ySJ0qMeT14c2euyYcu 147ezol8DSALQ== From: Lukasz Majewski To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Charles Keepax , Stephen Kitt Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Lukasz Majewski Subject: [PATCH 1/4] ASoC: wm8940: Remove warning when no plat data present Date: Wed, 14 Dec 2022 13:37:40 +0100 Message-Id: <20221214123743.3713843-2-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221214123743.3713843-1-lukma@denx.de> References: <20221214123743.3713843-1-lukma@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The lack of platform data in the contemporary Linux shall not be the reason to display warnings to the kernel logs. Signed-off-by: Lukasz Majewski --- sound/soc/codecs/wm8940.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c index 8dac9fd88547..0b59020d747f 100644 --- a/sound/soc/codecs/wm8940.c +++ b/sound/soc/codecs/wm8940.c @@ -709,9 +709,7 @@ static int wm8940_probe(struct snd_soc_component *component) if (ret < 0) return ret; - if (!pdata) - dev_warn(component->dev, "No platform data supplied\n"); - else { + if (pdata) { reg = snd_soc_component_read(component, WM8940_OUTPUTCTL); ret = snd_soc_component_write(component, WM8940_OUTPUTCTL, reg | pdata->vroi); if (ret < 0) -- 2.20.1