Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2117167pxb; Mon, 18 Jan 2021 08:38:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxx1TD10EwfhOYuP6AorJIb0BDGG8M99w5rRUmmzoPKvyas/AbVdkr5ga30vXoNHuNuF91 X-Received: by 2002:a17:906:853:: with SMTP id f19mr326427ejd.259.1610987914653; Mon, 18 Jan 2021 08:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610987914; cv=none; d=google.com; s=arc-20160816; b=phf20qNlSgOpfjmWkyOyjFsl5MjmBJsnB1mW+nV/Mf2ybCLv7uQckgRpE9WYDfE9np eby1a9gd7kO5DSkN+SqlmaeAauSDeclEQnn4OTSPIwitCMp39sdOyv6DpTzspHoqpjLW x7ELQWn1ZxnXLJQVv5CswfUvx9yKiCguXKaepvlp2wenDo5yaMfwJTVfvSAF522zYF86 uSDK/puUUvOJIRWWd1bTNRLwqyVySGRpE18K34V/vEYfzxKCHqfEn+PVVHGw2pz4Pp5+ L+DM+PCGS2VMB9qYtecdl+SJyYneG5gnXmDSoSZD53k4+UPVS00A+a++ds4a4U70jToJ UZeg== 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 :message-id:date:subject:to:from; bh=aUFdVEOwsvXzOnriJDAAu5rwdcdBk/KEMvga8AoaCIM=; b=0qyzkD0JXhIVMK89iXPqq/YLtK/d+miYNzEzJelm6emeb2MCPjNKVlUtlaflSka5vT g6wocUTECTutFClaefx59OWCdKEEVPvCJW/eFLLrj/U9WJWSEsLZOp7p9Ca6prYbPYb1 YUQsWchNVhSpoxIFflQfOBH046au14DWP4L/SIvaPZvYsdfTNLMC+5fSPyGi+IpoMj6p mxlHMV7nzwGvX9hjEWFtbUMk5OZXl259GrsWo5gEPpHa57zyaOHQEvecZZT9ZO53l5dM 13CvWnqi7RJePx/TxJOcU2b8xCSxNHkRH+PryeALuheP33vfjjsEGh9lQ3u8VgiXwM39 npkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x21si694982ejw.619.2021.01.18.08.37.40; Mon, 18 Jan 2021 08:38:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406621AbhARQdz (ORCPT + 99 others); Mon, 18 Jan 2021 11:33:55 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:51272 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406778AbhARQb4 (ORCPT ); Mon, 18 Jan 2021 11:31:56 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 7B115FB03; Mon, 18 Jan 2021 17:31:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Pbhew2sWb8fE; Mon, 18 Jan 2021 17:31:11 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id BDF5040885; Mon, 18 Jan 2021 17:31:10 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Mark Brown , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Trent Piepho , Oleksij Rempel , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: imx: Don't print error on -EPROBEDEFER Date: Mon, 18 Jan 2021 17:31:10 +0100 Message-Id: <0f51ab42e7c7a3452f2f8652794d81584303ea0d.1610987414.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This avoids [ 0.962538] spi_imx 30820000.spi: bitbang start failed with -517 durig driver probe. Fixes: 8197f489f4c4 ("spi: imx: Fix failure path leak on GPIO request error correctly") Signed-off-by: Guido Günther --- drivers/spi/spi-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 73ca821763d6..5dc4ea4b4450 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -1685,7 +1685,7 @@ static int spi_imx_probe(struct platform_device *pdev) master->dev.of_node = pdev->dev.of_node; ret = spi_bitbang_start(&spi_imx->bitbang); if (ret) { - dev_err(&pdev->dev, "bitbang start failed with %d\n", ret); + dev_err_probe(&pdev->dev, ret, "bitbang start failed\n"); goto out_bitbang_start; } -- 2.29.2