Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2157099rwn; Fri, 16 Sep 2022 06:32:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5W3VOBp2u5P1fFUq1tY1Is1i6HZCedq3zHAT8eGJyR3LqB0HhpdwccSwK6v5NTBpbbKIEf X-Received: by 2002:a63:2bcc:0:b0:434:eb77:28a with SMTP id r195-20020a632bcc000000b00434eb77028amr4512508pgr.168.1663335172682; Fri, 16 Sep 2022 06:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663335172; cv=none; d=google.com; s=arc-20160816; b=GLoV5goDWCokMshjfzOkiuxfJbR4N9jKZ3cafWeCfNh9niqCneOOk7DYyei31pv7Em 1v/lJui2GPkhX5IhI2u4ouGdutbCu4db9b7+ebSiKIMPzZpfDei49BErMMvsgQzqfa13 afmewuNjNI7XoMjFSxM3UvFKCIj9THfVUZOiBkxR8kbgPLiVZoVWnla4y56pU7fzlbS/ dfZJFjj6S4P8d5a1Cm2SDg6UNsVJENFknrHHFMo7Gj2SAMZVKB/CKC1oudM2LJxbsnK7 /8jhaDDpe4WAulhwJLh4UhwATPBhVATPshFilUh40tC2yPNM4QZPwELUDcoL8I/rR0jM d91g== 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=f8P6NdaxW6n0MxKc6m48JQ99Q9yCqPt9CXBbjR8xRMU=; b=GTbBk/GCEODuMvc2lI931HDgKgjnfEe4xdLeti0Phk1T9nfcsfBe9tPbgxdL87362S c+MVEHZGB8toJ6NWsiYa86Vwxav3rKYz5UFpikQeZ2CdoogIJF8ALiuOGGJT+0O4gFSV o33IwoxiQiHBFfjt9IHTwf7mY6s4kRnXJcuDhUAsT/sbGKfoEgBp+mRElKOiMBFmULqa /YIEQRKUywBPtrazAlFZt28ZUoCKzHlYeUY0Y6IGG+az0uhRgVLCvCg6tSe1BwSfP83i CrRcQ0ygefM0uRW9Wuh3tKVOrcFjZhJ6EjOHzmSmyiTxTA5hNer04x89lW/znJzEyu31 chUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tX3mOonK; 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 j7-20020a170903024700b00172d8f7cb5csi23984743plh.473.2022.09.16.06.32.36; Fri, 16 Sep 2022 06:32:52 -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=tX3mOonK; 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 S231666AbiIPMaD (ORCPT + 99 others); Fri, 16 Sep 2022 08:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231514AbiIPM3m (ORCPT ); Fri, 16 Sep 2022 08:29:42 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B4AAF5B for ; Fri, 16 Sep 2022 05:29:29 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id bg5-20020a05600c3c8500b003a7b6ae4eb2so19760565wmb.4 for ; Fri, 16 Sep 2022 05:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=f8P6NdaxW6n0MxKc6m48JQ99Q9yCqPt9CXBbjR8xRMU=; b=tX3mOonKXJPL1OZFdAVC68GaOsmTp9e/LPG3v7bWq8bnkc4cpgBSt5Zx3ixiaofOCO pkTfI7Tjrj1iiX311Yatu82wewCJaj6s1Li8LN8gH4iO1KSpXFUMj7K7n05rPOlObRl+ lIsiw8DsjibgmO8KSS15CnoN/OA/SXlDfoW6PVJQqat95zUdR53tAHPZrVTRfoSLtub0 cIHG8IGR65Lwyq0hVj4rIaxKwkB2fypk2HLxc6J3uBGqxwhERlG1iVUNtjmZ+g6/QPlO Z8KDdWzFeFI0534Hp6+vI5D48DH0oRbdkVYeIQ2i/XjuKOEvhlZKtPdpWkCiA4HBqkn7 W/zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=f8P6NdaxW6n0MxKc6m48JQ99Q9yCqPt9CXBbjR8xRMU=; b=SBCe3x6Y708QjMf7U4oiWPV5Iwcctr8kxZHj1QiKMCuCvme9bR0799mI7/05oeuFkc mdo0D99sKNCYOG53JogdgBL1Fj6iBVhdcowuKqqvmgSL1+B2ZKk6n+Y0LotVfW8rakLN FMI4EnNA0lU3J2reNUIVM3RJ/Ddy7STuAkgHY/zhQXKUUj2U0w3XjPBn0DzxjSgDx8R1 n+Cd95g0ItImTo3CaOkYhT4CKDtC8mkdYVi2qmGixpTA7iCip65KBV0i0A4VMZowFUid 70FIjnvNGifTlMOZgL3E0ylBGLkNCdJtwI1txU5AKtbD/Wx5LOpBNl1zHJdFTgp3ykgA /PpA== X-Gm-Message-State: ACrzQf2KDo2b5t7GRRslErq3/BkvUI8AeGwHvTqNOjlYKID2SQ5kR2HK vtCOyrGjiBhCWCi9+HRLlxsc6Q== X-Received: by 2002:a05:600c:34c2:b0:3b4:7a98:5f5a with SMTP id d2-20020a05600c34c200b003b47a985f5amr3162839wmq.156.1663331368019; Fri, 16 Sep 2022 05:29:28 -0700 (PDT) Received: from srini-hackbase.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id m188-20020a1c26c5000000b003b4a68645e9sm1990825wmm.34.2022.09.16.05.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 05:29:27 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Krzysztof Kozlowski , stable@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 1/4] slimbus: qcom-ngd: use correct error in message of pdr_add_lookup() failure Date: Fri, 16 Sep 2022 13:29:07 +0100 Message-Id: <20220916122910.170730-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220916122910.170730-1-srinivas.kandagatla@linaro.org> References: <20220916122910.170730-1-srinivas.kandagatla@linaro.org> 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 autolearn=unavailable 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 From: Krzysztof Kozlowski Use correct 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 Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/qcom-ngd-ctrl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-ctrl.c index 0aa8408464ad..f4f330b9fa72 100644 --- a/drivers/slimbus/qcom-ngd-ctrl.c +++ b/drivers/slimbus/qcom-ngd-ctrl.c @@ -1581,8 +1581,9 @@ 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); + return ret; } platform_driver_register(&qcom_slim_ngd_driver); -- 2.25.1