Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp589739iof; Mon, 6 Jun 2022 09:01:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKihlCOG+oLWcDp4XEtCVDGalbnt0Vzf7XqnOpX//lAp81ChVp1vOoaRz0qXCUnZOyWlZk X-Received: by 2002:a17:90a:778c:b0:1df:56a5:8474 with SMTP id v12-20020a17090a778c00b001df56a58474mr62868646pjk.63.1654531271233; Mon, 06 Jun 2022 09:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654531271; cv=none; d=google.com; s=arc-20160816; b=XwiFJ6oCuMJfkkJSV5JOtXa9dP+64nQ2P9dOj2U9tV5tbhf6O39MCC9f52ZsiL0Wyx ndjI0VtPVPdRdBUNzvkj8hP7a9y0/8LxZpIjJ1dqi4jIYifZwedMHKVzqZ7vYIvzLE6q Yy+d7By0Z3wZ7pZmJDZi9+LdzEV+t5Bxm4Hk4dCj3sk1x21K5MD0yP85uvoqjQ8vslFJ hpyJFIruEVnkDZnPKZc/O2Y9O4EAdmv/ewJ4w3Lf+os55b9SwSxq4lh/4CVRZkPoUZHU DLLmoKYvsgLCntdiaU5BXyRYKKF11LaLCSjsZM0Ba05msaJZVRoUdEo0pH/61pwJcUJL arvQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=AqZOOnLJGuceB2TSU+9Eh0CvtWhy1P7vm+Mht3l7hBE=; b=zflTefJfwprb0vQBG8k58zdLEOMauR9ANSLoY4LhvCkgZxQwBma6zzobQClH/kZfRu cH5Xy6v3un34NfEPq4GB6ZsnOn5r2j0/f542SAAFWdy5f4RMSvvSq1smSp4U6BVUEO/M zjiFPPglRpL3YqQbRjkjHjK8aeyBuxgUYqVuubU5ZD/PiPOBczFMfY9ieaVo+MwxNQ20 acAynaF35tvSpzFGRCOihJJi3En9cYeI+YrMjhpZkb08l99DkHrWOypC82/CZZjfC/4r T8h+JO3TeuEP5OoEqXWkNNQPPl/damJLA4GkZtzzTjX8dqCrTGrENclpeSEd4e2vLNQv //1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=EldHzQj9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 184-20020a6301c1000000b003fdb58c86b4si5225755pgb.675.2022.06.06.09.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 09:01:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=EldHzQj9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0A66B1F77CE; Mon, 6 Jun 2022 08:45:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241094AbiFFPp0 (ORCPT + 99 others); Mon, 6 Jun 2022 11:45:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240981AbiFFPpM (ORCPT ); Mon, 6 Jun 2022 11:45:12 -0400 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 E7C691F2324 for ; Mon, 6 Jun 2022 08:45:09 -0700 (PDT) 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 8D66D83AF6; Mon, 6 Jun 2022 17:45:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1654530306; bh=AqZOOnLJGuceB2TSU+9Eh0CvtWhy1P7vm+Mht3l7hBE=; h=From:To:Cc:Subject:Date:From; b=EldHzQj9W37KS4B3Zp8Zck7vsRweKlwHZBqX5t6x/0i2aE2k/IrYCAjxSSBNUMM5N IowMxYrBgfQKidisX14n1e1fCmxLgt7gHyvnBmnUvnkOhREPgIzRDGNuQ0XT+plVim O6MctON9jXkVi+OZHzO1QWsoIk1DkD4ysCKE+rpmT2Gf0ZtZvybaJDdy2VWAsWkApa Un388u3mEJ3tosql9AdazMmCw0m4h5zGnfc6lRcXM24aDW6HRmwRk91zGfnw6npLrX oqzto8tBGKVGnLy22ZFLkfqId62VHwf1ZrYwTm7Tx8ylYwdJ02yvZ50F4SKEYgCZxz AUPC+XXFb9nxg== From: Lukasz Majewski To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, patches@opensource.cirrus.com, alsa-devel@alsa-project.org, Takashi Iwai , Jaroslav Kysela , Lukasz Majewski Subject: [PATCH 1/3] ASoC: wm8940: Remove warning when no plat data Date: Mon, 6 Jun 2022 17:44:39 +0200 Message-Id: <20220606154441.20848-1-lukma@denx.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 440d048ef0c0..7cea54720436 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