Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2686240pxj; Mon, 31 May 2021 08:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYqtTMpoq5Kwcq6nbGKAg/AaWZGhiNqlhALQepcHA5lZiMthOQXCyH6UFqr2gFy2e9Vkdz X-Received: by 2002:a17:906:b74a:: with SMTP id fx10mr6173810ejb.248.1622474078477; Mon, 31 May 2021 08:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622474078; cv=none; d=google.com; s=arc-20160816; b=SOy9c27s9OP6tg5rmjwrBtaALPUSmD5yK6ChufWuCXqQM7UtwImkG4WjTKh2JECeEf hhnuLpuVxGaO6rlPXoxwF90F6pe6sWH/h335eAPLHUSd0ttIq2RzoGGLLer9sajU3BpW OKyWoEWDoXSEmBTvQtm6lCZsXo0LmUzzDi1OJUET49sLfsT+Ok+wXONTTstIl79n1prW E8zTY58LxEeYe1lbim80y7E+fAby8+TWmchBdL3L+ePy6BGM5NJEbTwxPmzPCNR7Ef8h rlFJHH9OzJAF7ris1Osb1XRBzpeL8uSP6JgQ94pH4lqLlR+XeEqAw2dQK0frjtzOQj2l NBPg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=t84DLuOtm0EfxlB5WF12z5vbWNUnv/WyWkTPp1f4WB8=; b=XO4e2JShAVQIJcnymaJMRe/KnmS6JHSOgnZDr7k565TUq9gTa0UZhg+2nXCxNyy44o GYJxM5HDO4yCG8zVvBLL+LJNgFbWYsbme6WKmBJz1fLkxZMyeHWZGw1MGwF/7MlnHkOY qAfI4wVuyH2FD93nZlBj8QWFj+AE+9MKJIMCwsfdr3p8sKwRJ765SvCpkq2IzGOAGEVv HC3GzYBEbe6rpjjnLj/NMMuvujxW5YfL5fzZZ41zARnw7Bb9nxIHgM/672jbqcpnqh1Y +ReRHTmNYAuiP8Lpr9+jh75wQqEzqE+4+ryrPOOQtqM+J9NMS2lLa20rjoHmQzC+Jkj8 wqRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1MYb02oH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o18si13118426edt.176.2021.05.31.08.14.16; Mon, 31 May 2021 08:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1MYb02oH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232138AbhEaPNt (ORCPT + 99 others); Mon, 31 May 2021 11:13:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:40228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232831AbhEaOLf (ORCPT ); Mon, 31 May 2021 10:11:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5720961987; Mon, 31 May 2021 13:41:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468470; bh=hZV1gnC7BpWPt/IkJZ2M8CHTD2US7I/A0w8cizfLY2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1MYb02oH+9xYu2o7qVkhANk1CY0hw94EKkoUho1NNOqvEc3arQZA9YH8SfgWBHEye URt260KS6/qddxFFX4D+R7C5tQRo18lw1/NBW2eSy53PPvZi+rTuGTkuhhNJI/aXxS g7XSXpJgbctBjzV1d4C19RB2PAl7pR9WMh5+QWZ8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Srinivas Kandagatla , Banajit Goswami , Stephen Boyd , Mark Brown , Sasha Levin Subject: [PATCH 5.10 231/252] ASoC: qcom: lpass-cpu: Use optional clk APIs Date: Mon, 31 May 2021 15:14:56 +0200 Message-Id: <20210531130705.846878031@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stephen Boyd [ Upstream commit af2702549d68519ac78228e915d9b2c199056787 ] This driver spits out a warning for me at boot: sc7180-lpass-cpu 62f00000.lpass: asoc_qcom_lpass_cpu_platform_probe() error getting optional null: -2 but it looks like it is all an optional clk. Use the optional clk APIs here so that we don't see this message and everything else is the same. Cc: Srinivas Kandagatla Cc: Banajit Goswami Fixes: 3e53ac8230c1 ("ASoC: qcom: make osr clock optional") Signed-off-by: Stephen Boyd Reviewed-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20210520014807.3749797-1-swboyd@chromium.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/qcom/lpass-cpu.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 4fb2ec7c8867..7a30a12519a7 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -839,18 +839,8 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev) if (dai_id == LPASS_DP_RX) continue; - drvdata->mi2s_osr_clk[dai_id] = devm_clk_get(dev, + drvdata->mi2s_osr_clk[dai_id] = devm_clk_get_optional(dev, variant->dai_osr_clk_names[i]); - if (IS_ERR(drvdata->mi2s_osr_clk[dai_id])) { - dev_warn(dev, - "%s() error getting optional %s: %ld\n", - __func__, - variant->dai_osr_clk_names[i], - PTR_ERR(drvdata->mi2s_osr_clk[dai_id])); - - drvdata->mi2s_osr_clk[dai_id] = NULL; - } - drvdata->mi2s_bit_clk[dai_id] = devm_clk_get(dev, variant->dai_bit_clk_names[i]); if (IS_ERR(drvdata->mi2s_bit_clk[dai_id])) { -- 2.30.2