Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1126638rwi; Mon, 31 Oct 2022 11:41:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6LT1BLIU2ZVPFlDYroimHjNZ0xI03iKqS1wxae58nPuDDnOhZ0uz5uTRZ6mPSFiRa52mve X-Received: by 2002:a17:90a:d244:b0:213:aa62:7a91 with SMTP id o4-20020a17090ad24400b00213aa627a91mr14352129pjw.101.1667241708716; Mon, 31 Oct 2022 11:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667241708; cv=none; d=google.com; s=arc-20160816; b=TtlGyzr/MTfGu2Y6L7EbvZqGgT5pJbmG1vcPb3QxqjXbQ/R9n479WQbRhxd246Ljsw CV5uWs4w6TTocxjo1eOwtKU9k2L8bK29/6kNZ4yLMlvGgj85NB8J3TClFsJWUQh1fh/Z Pke0J/HRqLksjE/GY5T7DAjCdqLX2tpVLjZyDdB0NbbPzgjpxMScxXcTGmVMKgROwCAX dJ4dW4LmGupb3AOXlUUUKYqxjnBPz7OspGcZkYK3oEQgF2myStnL1569sLHrOm/kMlMQ ct7IkjTOPmWjf3NQGuP3ovbvLTktPMR+368FBXXJo1WTPCYB481N70gmt507bYKOfrIr TQgw== 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=fvt/ooOFeIQi2DBt2IsAxWGkItH8ZOWcpqthZcxorNk=; b=bru+LaLj1+wIrvkSOD0g5UnHcnTSUmKAjlkOat+MjoPYaa+HCfU7gq7nuLQjhx3Qyn 0EHax0KUxWM0wbS4r29sbeLfFL9jP+EESuvwfRkgbyLsXoJibwH7rIki+ew+lvJ9A+mb izCWJqu4mnak4Z48x+wJ+qWgMBVhIycsQKBNQa32zgPWNvvNyUQUzUOvG+VIAzdAbC2R bdKFlxqNp70NkhltW5MfQpdXyt5+pq0ZN5Ng9zF00hObdGCRf9QaB2qBLkDamvC1tE8x rxs7q9m0ObNplQX0Z/phFDm34CkUHiqy/YvRrkFzgPWvT8URh4HS/MD/69jByx11maRD /Ztg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MRr8I4Hd; 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 q7-20020a170902edc700b001709c82ca08si9117024plk.297.2022.10.31.11.41.35; Mon, 31 Oct 2022 11:41:48 -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=MRr8I4Hd; 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 S230216AbiJaSEc (ORCPT + 98 others); Mon, 31 Oct 2022 14:04:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbiJaSEE (ORCPT ); Mon, 31 Oct 2022 14:04:04 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFB6410FD2 for ; Mon, 31 Oct 2022 11:03:58 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id 130so11345692pfu.8 for ; Mon, 31 Oct 2022 11:03:58 -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 :message-id:reply-to; bh=fvt/ooOFeIQi2DBt2IsAxWGkItH8ZOWcpqthZcxorNk=; b=MRr8I4HdQhqgTo0yNOhsFOhZV/I9beGFFMFSzQ5/qewYPlKyDMnTu1cb8X2l7NnkBC D/vh5oh44rVIq5XLoY3RWT0n8Gi6fqUYZT5lW0Njj1f9XpMLyDdrdPuqwwQ2R+tVXHuH rxtTzBVxF+smBqHDdP89u/1etqmRaIfsrmFs52mjVHwSMlzKZxKs2FD05lRsJI5kHaAB RNr++j1JU/y9a5A17NMz9hWSquiIaUzWCAlVD5m9he4b57+Qk7pxB4o/e2HXwHEpWxZo M8PpwHV9IJ2M9SVifRB3jUkzQNQsmWty46csc0KPf1s7FR2ayyHnP2sF/ewS4uKr1gBG wY3A== 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:message-id:reply-to; bh=fvt/ooOFeIQi2DBt2IsAxWGkItH8ZOWcpqthZcxorNk=; b=T6q7KYhg2uibhRhCywJERBX5hk8iEEwqf41g/2UsHU0a+jKfg0GwM+7Zhv7QPxGIAb V3/UcWM/7njbojHEg397JPoip0uuRreVjr66MrNW9fwmKNQzqeuFpmIl2r+JQIQdiTfS 2UaMO0LUFt6cnmkCdoWo6uDzuqcPDOgbYAyKDtZK5LGWmV0+HT2ppr2uISj2iLxjk66z TOdmOijPpk/H0f+nS7zQwN3mnQMGQgq6mwHMpCpSEgH8RiDS12aZfYD5Qt1CbT/ijDnI IOSSbid8cWFqZOpInM/BFDQnlwg3ZMi2suMWzDT8c/gHgEAxS9XjpD1JeREW3ocmcAva prbg== X-Gm-Message-State: ACrzQf0x2CwMzFMEEXGBlSvVMY9ETLjZgpDEv9JAt/N3Q51xv8qsuBSi e20KyR26swnPGDshb+Je0702 X-Received: by 2002:a63:f153:0:b0:46e:b0e3:547e with SMTP id o19-20020a63f153000000b0046eb0e3547emr14247127pgk.51.1667239438233; Mon, 31 Oct 2022 11:03:58 -0700 (PDT) Received: from localhost.localdomain ([117.193.209.221]) by smtp.gmail.com with ESMTPSA id q14-20020a170902a3ce00b00186c6d2e7e3sm4742224plb.26.2022.10.31.11.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 11:03:55 -0700 (PDT) From: Manivannan Sadhasivam To: martin.petersen@oracle.com, jejb@linux.ibm.com, andersson@kernel.org, vkoul@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, quic_cang@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-scsi@vger.kernel.org, dmitry.baryshkov@linaro.org, ahalaney@redhat.com, Manivannan Sadhasivam Subject: [PATCH v2 11/15] scsi: ufs: ufs-qcom: Use dev_err_probe() for printing probe error Date: Mon, 31 Oct 2022 23:32:13 +0530 Message-Id: <20221031180217.32512-12-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221031180217.32512-1-manivannan.sadhasivam@linaro.org> References: <20221031180217.32512-1-manivannan.sadhasivam@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 Make use of dev_err_probe() for printing the probe error. Signed-off-by: Manivannan Sadhasivam --- drivers/ufs/host/ufs-qcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index 8bb0f4415f1a..38e2ed749d75 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -1441,9 +1441,9 @@ static int ufs_qcom_probe(struct platform_device *pdev) /* Perform generic probe */ err = ufshcd_pltfrm_init(pdev, &ufs_hba_qcom_vops); if (err) - dev_err(dev, "ufshcd_pltfrm_init() failed %d\n", err); + return dev_err_probe(dev, err, "ufshcd_pltfrm_init() failed\n"); - return err; + return 0; } /** -- 2.25.1