Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4128844rwe; Tue, 30 Aug 2022 05:15:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR5PAM4nFXRNuMH6dOTXZvzGtfS+AJvwY5AY2fkuUquuKtooRbxLortQYMcp02xsRTle3D7L X-Received: by 2002:a17:907:75ec:b0:741:484b:3ca4 with SMTP id jz12-20020a17090775ec00b00741484b3ca4mr10478422ejc.316.1661861739662; Tue, 30 Aug 2022 05:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661861739; cv=none; d=google.com; s=arc-20160816; b=S/mGewNSaoOrmmbk56/ZC5OcNOaPr3wif9Ovs3YS1Fm1Qg8Ln/myJaxbnMxVGR0mcw uKHFjw4ckqwpP8M6NoMHVm+eLvRBvGYKjvAOPZyfUu97mWFpmU7mNjthwktHjOOTe6TK AvttF7XuHnJQnaXU7H0z2yfOl2u2DSX+FfNn+vfepl0lZQysvXK9YAsAo+xkYwYh5wfR uOntL4HbI8Fp3kFbsDgquN9kcBib3Ar+eG55kK1BcJdsqqwyM50hsB3gPTngj9Wql/R0 QuisdmuKC8VrR1ylKS4Lj0g7FGtisEDia5QtZ39JXimYKTKMp2vz0zrCvqtznE8FiSsW CxeQ== 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=733lkI4nV8tAJya1OCGSDu4na04yzaOxs1WGC8a5e54=; b=nV5HJr9EU5/Y8InT2TEHy0RE77xXOh09QECNc14u/dIEBZB6wWaWjfyeXo5lygmXE/ 2jv2MnzKO/wtmtxBb8MFQp3b5T+pHsLWzEsoN809+Bzqh66C35TjQ1ZmhXf2SFWcNgvf cufajKKa+rvMHEX+G58Sys/3QnM6cjjy8X7vGqWvE0VoSsNpQOt+alcuQrdWprtYO9yu vFNVCOETegrUDSZFl0zMa2+9rrPc6iv2OCvX2eEoGHj9WqRGfXSKrpnLZRczjIDJ8Fw8 /acWOdjN5dfPPKSebMm1u8D41gfXcmBySMYMUCyX0JZcS4nc/4KQ4zXj5wwE7J+iWUkH Oc1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lDRTcSWk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb16-20020a1709077e9000b0073bd9e4e634si9112600ejc.730.2022.08.30.05.15.11; Tue, 30 Aug 2022 05:15:39 -0700 (PDT) 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=@linaro.org header.s=google header.b=lDRTcSWk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230274AbiH3MOJ (ORCPT + 99 others); Tue, 30 Aug 2022 08:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbiH3MOH (ORCPT ); Tue, 30 Aug 2022 08:14:07 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65DEC155A4C for ; Tue, 30 Aug 2022 05:14:05 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id s15so6002776ljp.5 for ; Tue, 30 Aug 2022 05:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=733lkI4nV8tAJya1OCGSDu4na04yzaOxs1WGC8a5e54=; b=lDRTcSWk7n5WQYwupr0VW1gI/QLldoWoLCFM2J685qNCJnlhBYp84BlmdPypYDBNo3 ouJRHsTrlaKAimiUYCJd+qaQ/TwoZ+f5yu50PoNDQJdBhrtNM6mXgmYnUXS7nLhbj44T MpvWAod1I18ESN43WrM1B/te/wjdPUxWXEFyxdUcMFaIXtH132GxxAago7aHQvXJe8gh JhfxoYsRPaG4ZZW1fJ6R9D8uCCs3sEkRncEFPzwv+K6fIpijn552jnYeSw8LnldYcbhF AK6IglZnjBtsb7493A9ttt2jRV3uqL81yUj/p+xTPFucIcU8c2MzP3O0FLZq1JaZtqd4 xImw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=733lkI4nV8tAJya1OCGSDu4na04yzaOxs1WGC8a5e54=; b=UQIVYD5GsejIwt/wx+P7lUrTjyIGFtd3mKXngACpHjxu8JMjwGxaVjY3W9LumYNQcR xH6CJENI/46Xfqeu1pN/N88DOEgUhkkEsr6wFwuXfC6rOP3tFkv05i2Vs2SHESffAPp5 fsKNEgRYhNBg2fmM4POew2IqfiQsg0A+E5ph7hOrgMB5Sc//XDQr9PkTYHgdiOvO/dza F7txLMoXW/7CylIQIgULUQqQkwMYv0txwSGJWH8ddYIkPpdSOTdAfqcVST0HxbNK2/Nr srKyKD8EyIF510Y63PHzM/hvzvcKrtcAya/kOZd8fG5VofCCofEDFFkDqY9AOeWX3MOK Uvtg== X-Gm-Message-State: ACgBeo0+A5lsniomQbADfnuuLEz7VBJaA/ja332OWSH0o2EPsvUjXi90 zXt2OShTEu7OeAY1feI9mqfkpA== X-Received: by 2002:a2e:5005:0:b0:265:54e9:2b81 with SMTP id e5-20020a2e5005000000b0026554e92b81mr2514328ljb.309.1661861643670; Tue, 30 Aug 2022 05:14:03 -0700 (PDT) Received: from krzk-bin.. (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id e14-20020a2e984e000000b0025e57b40009sm1742436ljj.89.2022.08.30.05.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 05:14:03 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Srinivas Kandagatla , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , stable@vger.kernel.org Subject: [PATCH 1/3] slimbus: qcom-ngd: use correct error in message of pdr_add_lookup() failure Date: Tue, 30 Aug 2022 15:13:57 +0300 Message-Id: <20220830121359.634344-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Use cprrect error code, instead of previous 'ret' value, when printing error from pdr_add_lookup() failure. Cc: Fixes: e1ae85e1830e ("slimbus: qcom-ngd-ctrl: add Protection Domain Restart Support") Signed-off-by: Krzysztof Kozlowski --- drivers/slimbus/qcom-ngd-ctrl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-ctrl.c index 0aa8408464ad..6fe6abb86061 100644 --- a/drivers/slimbus/qcom-ngd-ctrl.c +++ b/drivers/slimbus/qcom-ngd-ctrl.c @@ -1581,6 +1581,7 @@ static int qcom_slim_ngd_ctrl_probe(struct platform_device *pdev) pds = pdr_add_lookup(ctrl->pdr, "avs/audio", "msm/adsp/audio_pd"); if (IS_ERR(pds) && PTR_ERR(pds) != -EALREADY) { + ret = PTR_ERR(pds); dev_err(dev, "pdr add lookup failed: %d\n", ret); return PTR_ERR(pds); } -- 2.34.1