Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp1211152rdb; Sat, 9 Sep 2023 14:17:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtmTMRwDeID22IdsmJhnKJoezumoMF0SIbYMcEW+EYACyFFUG1dYW5EmdZYQ3xR20hh349 X-Received: by 2002:a05:6808:148c:b0:3a7:6f16:b549 with SMTP id e12-20020a056808148c00b003a76f16b549mr8548113oiw.49.1694294270097; Sat, 09 Sep 2023 14:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694294270; cv=none; d=google.com; s=arc-20160816; b=AmP/I67c/zk4UJW3w8rlAOFQInERRgY20C9bOYsrDQNYagp8be4D77O17+MIiAlYbW Ot1Yv91hWEfQzq5O6oXI088pcmzc4y2csFXO0wqhCqLAeaP4YIiYlbCQ0HM63qCkxE6w PsoQQ8nwfR3T7190n8CWfdJl53TeCyjt/cnnAjC4pggCMKB1fYi2DImXrIlQ4MyylI+Y J6TyARnX26EQk7SxJV4YEzbAtPsF3y5nkWvAWS49UNzGfQCtD76Hht2kfbu4twyJxaCO hqW4htbp5W8huFzxaTo17fyXxynx+TFcgsHdkR9I46HXUwwUZpjUgeOoO73KRTz+kgeJ aPxA== 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=TKJx+LKqmWSduMS/Rvqr7LYuPIf+jkXHy5f3h87Azkw=; fh=ZBUza8uy0dV5jZf/pYfDDPiHGUvrGMSQ/2afVHvaZvk=; b=Y6J0SRm+WP4XkStIaMG+KHGPUhqsLib9FUH3tPIZKIEh+lEN20epuvUqIec3BSImer Ia0G4uDlxtkI5Te9eGLIK6cqYJfJW1AzxN59g097njuPcIx/Ys78hr/JM4vExiXTzjUF jhAwiQ37hJIKw0vU8f5hs1QWCH24bACt4hPd1ntMJ7RufMkNUK8qGHCSUhmQ49HDcGtp TZI/k4iWGMzkjiV89KPCKPIcRZASwIWxwtfC2sLG4PH5Ju0VfD0Dnml2CITFKmYN8ZV8 cl5zZm1/QeH9mPhXxcEUfixO/5tfA1JeGIPlXFekpb7Iq/Ddu3UJvQ6rc7t726L8ErAS qhJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=H4Ox8u8y; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g63-20020a636b42000000b005638355e990si3552840pgc.410.2023.09.09.14.17.36; Sat, 09 Sep 2023 14:17:50 -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=@gmail.com header.s=20221208 header.b=H4Ox8u8y; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245336AbjIIGg1 (ORCPT + 99 others); Sat, 9 Sep 2023 02:36:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244997AbjIIGgY (ORCPT ); Sat, 9 Sep 2023 02:36:24 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23F451BC1; Fri, 8 Sep 2023 23:36:20 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50078e52537so4646083e87.1; Fri, 08 Sep 2023 23:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694241378; x=1694846178; darn=vger.kernel.org; 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=TKJx+LKqmWSduMS/Rvqr7LYuPIf+jkXHy5f3h87Azkw=; b=H4Ox8u8yy9ABsxk16CKHLjNoDwe55IDziBqaIIcgYQ/u4q3Xtu2SWfI2mIooXz2Vml oqIVueK9KCJg0sQXDBMy3YODP8RsMNJetkuNmVZ9WI998COf9+kIT3FW2V8bWlpyPKyH tyfTv+Dj+4XYLW41mQ8H28ZuoedzxruQpF2k1hOUmPjWvWJW7TBz5Vkx+Pp/nYX6bZFf pjxGK9L2o3BGBAxBYmoTiuJsjqscZZzXnX2XdW2doRO8FULCevl5d+AsBuQpOad5Mvut YHHMGk00ncR/9yN8dXFnL6sxjnGNkVGiUAUCMMfIZHgQyR0KwRoj03otFEtxfgjN8CEL k4Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694241378; x=1694846178; 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=TKJx+LKqmWSduMS/Rvqr7LYuPIf+jkXHy5f3h87Azkw=; b=g512C0WA9dmh1JTiIKARnsPpIq1Pv2FbZ7JMqgJx+i4N1Dcns5GZ6JigjURRkBZSfe 6PdXuMesMr2VPSLxElvurv2r6Ce2YyzgMA3fKSxD9ZAhigCUbmWanlWPLWNF363rXuY6 IoAUEZsypQt0hW9SmVrjqMSpjTURunUY5Pd0KT7W/oZ8rMtP3zAY8qeqkKh6dXffmWQq Eay/HJvQLtYfAQ1fdUPa7Wr5hSIlQBO/RCJtDN+K5o0phfAD0zz/8m427ZGUnetZLYPc fjUy9FCNTzSpNtlxQyBP7Jdyi0YFvTQXc66si8KlAqvWS/bLiXnUfpO38JbAxdAZ0w/l oJtA== X-Gm-Message-State: AOJu0YyOcCEHKMUWRbOMrFgLHXAqERHqPfKKLkBRrv7wmIh1mQT7/d3a 9xjB9/sTVysFpzlCEYpDvT4= X-Received: by 2002:a05:6512:688:b0:500:9b7d:ee22 with SMTP id t8-20020a056512068800b005009b7dee22mr4318820lfe.60.1694241378054; Fri, 08 Sep 2023 23:36:18 -0700 (PDT) Received: from localhost.localdomain (82-149-12-148.dynamic.telemach.net. [82.149.12.148]) by smtp.gmail.com with ESMTPSA id z26-20020aa7cf9a000000b005232c051605sm1817525edx.19.2023.09.08.23.36.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 23:36:17 -0700 (PDT) From: Jernej Skrabec To: linus.walleij@linaro.org Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Jernej Skrabec Subject: [PATCH 2/2] pinctrl: pinmux: Use dev_err_probe() in pin_request() Date: Sat, 9 Sep 2023 08:36:13 +0200 Message-ID: <20230909063613.2867-3-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230909063613.2867-1-jernej.skrabec@gmail.com> References: <20230909063613.2867-1-jernej.skrabec@gmail.com> 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,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 dev_err_probe() when printing error message in pin_request() since it may fail with -EPROBE_DEFER. Signed-off-by: Jernej Skrabec --- drivers/pinctrl/pinmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 301fe0157b02..4a9776a99d20 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c @@ -188,8 +188,8 @@ static int pin_request(struct pinctrl_dev *pctldev, } out: if (status) - dev_err(pctldev->dev, "pin-%d (%s) status %d\n", - pin, owner, status); + dev_err_probe(pctldev->dev, "pin-%d (%s) status %d\n", + pin, owner, status); return status; } -- 2.42.0