From patchwork Thu Aug 17 14:59:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Masney X-Patchwork-Id: 714883 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D918C41513 for ; Thu, 17 Aug 2023 15:01:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352568AbjHQPBV (ORCPT ); Thu, 17 Aug 2023 11:01:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352723AbjHQPBP (ORCPT ); Thu, 17 Aug 2023 11:01:15 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A6822713 for ; Thu, 17 Aug 2023 08:00:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692284415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=U3UGQVuqNmJTUHQlyY57PaFZsT3ZmRuMFTjsLhZtXBo=; b=DigEsDjaoz5UzSZyzrE7yOfiHnUtGABWzK7ueqCrFVPSV0nTP71vpwFw5SiOIAh/yg0Oy7 NqeBVy4IMrVflARlKFTFuCG+VeUHcq5maW9cBiBLyjGqwfRNTmzH0VDdvHeHCkA3kNu3FB QBFqxRGRP/7o4rx5t40L1xJtJh8tVJE= Received: from mail-yw1-f197.google.com (mail-yw1-f197.google.com [209.85.128.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-122-pR-zlBJGP5a2BkEqRU860w-1; Thu, 17 Aug 2023 11:00:14 -0400 X-MC-Unique: pR-zlBJGP5a2BkEqRU860w-1 Received: by mail-yw1-f197.google.com with SMTP id 00721157ae682-589ac93bc6eso98673557b3.0 for ; Thu, 17 Aug 2023 08:00:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692284413; x=1692889213; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=U3UGQVuqNmJTUHQlyY57PaFZsT3ZmRuMFTjsLhZtXBo=; b=OsUkkPpGI7W7188qipIVAEMbcaQp3mjMXppl6/q9fWpzv4j4BA1ZB2iUuv2IsC/fi5 MDjrAKNo2OFFcGaOUISVJcC5iR+q1T5SPD/GD9C7VVsAIXlfBprpPg5kRVudmTD3VZNo 02iq9dCPUF/sqfa+oc72v1I62Fft7R7+3wVUY++IXHHerJJ9fcyNQsC3u3uuZNDseY0w dxM0XQxGuiHg4tNAQ9wbr6B8KnIxJZnmkMq65yqzXCvj+6hRxBvrSS+PnhfoWbDQMBcf AYPXy/FtAHIoEE4RqPp57kOWk3kW35rhMaDo0L6u5NrLDPwFIweMY+iEnkHN9cO74GYo 8ubw== X-Gm-Message-State: AOJu0YzIru15oPPDfj9myMdSvh4deKG6414MjiO9y8JGMK82NwuIlla0 hHBCS6ukrEHVeTWUlILOrA0St8ybnyWN4vUFNgPNmhmMJ+lGPNBlv4mAgH+nKMmYRx1eASz8WOs KSsR56Rwhu97T9ajcgLDznw== X-Received: by 2002:a81:77d5:0:b0:583:6839:755 with SMTP id s204-20020a8177d5000000b0058368390755mr6771906ywc.14.1692284413609; Thu, 17 Aug 2023 08:00:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGFmUDpXT1QSPSf3Fo21wGonusb0vkgfDhCpLsORG+TcghEbu5NJEptHkrNpgpnMM0ltvan0g== X-Received: by 2002:a81:77d5:0:b0:583:6839:755 with SMTP id s204-20020a8177d5000000b0058368390755mr6771880ywc.14.1692284413374; Thu, 17 Aug 2023 08:00:13 -0700 (PDT) Received: from brian-x1.redhat.com (c-73-214-169-22.hsd1.pa.comcast.net. [73.214.169.22]) by smtp.gmail.com with ESMTPSA id g193-20020a8152ca000000b00582fae92aa7sm4654788ywb.93.2023.08.17.08.00.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Aug 2023 08:00:12 -0700 (PDT) From: Brian Masney To: andersson@kernel.org, linus.walleij@linaro.org Cc: agross@kernel.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: qcom-pmic-gpio: silence -EPROBE_DEFER message on probe Date: Thu, 17 Aug 2023 10:59:41 -0400 Message-ID: <20230817145941.1091418-1-bmasney@redhat.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The following message shows up one or more times when booting a Qualcomm SA8775 Development board: qcom-spmi-gpio c440000.spmi:pmic@2:gpio@8800: can't add gpio chip Convert this over to use dev_err_probe() to silence this message. Signed-off-by: Brian Masney --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c index deded9c6fd7d..d7576fa14935 100644 --- a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +++ b/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c @@ -1154,10 +1154,8 @@ static int pmic_gpio_probe(struct platform_device *pdev) girq->child_irq_domain_ops.translate = pmic_gpio_domain_translate; ret = gpiochip_add_data(&state->chip, state); - if (ret) { - dev_err(state->dev, "can't add gpio chip\n"); - return ret; - } + if (ret) + return dev_err_probe(state->dev, ret, "can't add gpio chip\n"); /* * For DeviceTree-supported systems, the gpio core checks the