Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3630526imu; Mon, 28 Jan 2019 08:07:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN5zeEHiewlY6hbKqB9laoeizbMyUD0f/osufFjsIom22YPL379v+jmu3WLU+BAgPQ+X1LDr X-Received: by 2002:a63:7044:: with SMTP id a4mr19940693pgn.359.1548691662122; Mon, 28 Jan 2019 08:07:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691662; cv=none; d=google.com; s=arc-20160816; b=vJIrwEVOYX239aiEq3lTZqCW3UDBaSdkGFB/MXhtQwT+NJd4h6I131RNg+OR2+RSql JvW5GuyKRyTq9xzY5f7/H7PfSU8+fzNaXQec44dFsDb/cc/lx2KGZ4pnXprft/7m1XfR 8Jlyp8LX9FrUr5Q9aMnRshn3LcFomEg3XCQVh1n46ssglT8vswcvdW8bsOeDdnxFF6bS MN0nwBZwKXFeRVd+qcNgHc4fvxRP8MiwrqKSsrgxj2QXEj6ypMF8tbAbhl6+VESNiDzs 8s0wVqN8sszs9iTeL2dRLN8At2rNARkeRAugE329120IzooWcsGPrYzZNz132+lRK96v iRcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lGOk+2YJUVtP5/9a7lCMPPen9ru7/fYXVKCmZtaqsRM=; b=B0K6Iepy8DQWWxh7UhTDOfhKk253mqWJlXioi+Ns+FpEq2drq2sMlkrxC2YBB0TUpk iD5Hqr3rQ8frS2rYqRMIZVamwE+fUqL7kzHn44qMY4oQS223msUkGSU4UKW2hr1IC93d h75dWeOB4RSEHUII74LV43i2nl2zdm4RdoQJYxcdUMAv1EfYfuTtySc8O7ki6XqqudEY 8pEvhkeDjVlpfVsgwE5WJkgnComQ1JFWucT1+CLY8kJAOOynlLGZpssm3uLjgSjkj0W/ Rfmab16fx/rA6+k+5SLwhwuLxLMRekYM3CVAmQmvc17dQNJJxrfnOBPZ1SILuQe38yYA YZOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2HE6scrT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si33793586pfg.78.2019.01.28.08.07.26; Mon, 28 Jan 2019 08:07:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2HE6scrT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731804AbfA1QFW (ORCPT + 99 others); Mon, 28 Jan 2019 11:05:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:51658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731235AbfA1QFQ (ORCPT ); Mon, 28 Jan 2019 11:05:16 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 33E5F2147A; Mon, 28 Jan 2019 16:05:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691515; bh=DrK7gd4romlFTo5A1QWfBEncO8SIRCy5ziPC07ZCprI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2HE6scrTLfmIsihll2eKRrmujJVpdLBckpNCIdbwgzx5L4cq8OYj19859K2QWJsui HPAOWzkKtyvZF8q4ZY7Svg7GdFK1sZ7IYJmFw5IGKUE+2mBVRg7ueDfUHLvcJZt0lL OAa2Worb3Uo4ZLh1CBNLWYAdIZEOOLRDyPGBiDBc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Dmitry Torokhov , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 124/258] Input: rotary-encoder - don't log EPROBE_DEFER to kernel log Date: Mon, 28 Jan 2019 10:57:10 -0500 Message-Id: <20190128155924.51521-124-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Uwe Kleine-König [ Upstream commit 0832e93632c61987d504e251b927a2be769dd21a ] When a driver fails to bind because a resource it still missing it's not helpful to report this as (usually) probing is repeated later. Signed-off-by: Uwe Kleine-König Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/misc/rotary_encoder.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c index 30ec77ad32c6..d748897bf5e9 100644 --- a/drivers/input/misc/rotary_encoder.c +++ b/drivers/input/misc/rotary_encoder.c @@ -240,8 +240,10 @@ static int rotary_encoder_probe(struct platform_device *pdev) encoder->gpios = devm_gpiod_get_array(dev, NULL, GPIOD_IN); if (IS_ERR(encoder->gpios)) { - dev_err(dev, "unable to get gpios\n"); - return PTR_ERR(encoder->gpios); + err = PTR_ERR(encoder->gpios); + if (err != -EPROBE_DEFER) + dev_err(dev, "unable to get gpios: %d\n", err); + return err; } if (encoder->gpios->ndescs < 2) { dev_err(dev, "not enough gpios found\n"); -- 2.19.1