Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6027852ybc; Wed, 27 Nov 2019 13:40:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzWegdU+N1oRVNsJQdeBFil7U4aNr2AVT3zmqYqbmiq4u6OMbks7ikTeTjo3s747SAkQIu3 X-Received: by 2002:aa7:c78a:: with SMTP id n10mr34613356eds.82.1574890801154; Wed, 27 Nov 2019 13:40:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890801; cv=none; d=google.com; s=arc-20160816; b=HJHn+HOChuoJUE6U5fFVNx0nCzR6hcAGXCSAU1DQN2M4Ki500eU5Lt4yqHBFiQJDoJ qVClM15KRCEsAt/gOBUPhDS2mUd5GgL/LBIIo74uDvA/XJ6rHRSef8XV8rvAP8CgUkVv YcOz2+21NHGp7sxnmT6sd3HSeJQkm/H8Y+HigPHzsfDfu94ACXD3TOBHYoZIilEzFh2x UXyyjb3Q0lRhrGWg+msVx+8ghD7K69qa2FU1lHiLPx5/6/nnm6TjxU8zM9QXyTHHBI9h Sasvh0shtK39YizYnLlj8bT1MQI06fuAoDG/C7hvVecAtH3XeGnDiCiMiAvwzaS/UW+w Vb8g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=brmK/qVX9mc2viQHQXk6iYe8XahwrioYI21rnlowpo8=; b=U7iVPiPB1PQrmRaxjePjxJ0i8FgS7YcFeslaZN2YFpnnRaVKuS1MaiVwkgSfiObHPp ehf28S1U52ti9xHKl1a6NxLAnHsvZWKriyrqfl6SLxwu/cSJP7ra3T6yLx8ptCBW8nKE DjegxYy/bwRkodF6yt4Pkpts0szp2G9F21eXPKArCXk9fpdI49pIGe9W8UOLQ+uMK85+ oZ1IQcLjF3FYK7fwLD8mw3/smR9kAJrOMqqG2Ig3mT5OC1dHU6MRt0//7ie8NObtUSLn +gFMLWuHyOtVKyId8AFsKjjkMja56wDCUHTh+x2qm4krny/oBPLfs2qBoUXbUueGJHml mbSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rglH2Skp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8si10608583edq.55.2019.11.27.13.39.37; Wed, 27 Nov 2019 13:40:01 -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=rglH2Skp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729961AbfK0UrK (ORCPT + 99 others); Wed, 27 Nov 2019 15:47:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:59638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729949AbfK0UrF (ORCPT ); Wed, 27 Nov 2019 15:47:05 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 47885217D6; Wed, 27 Nov 2019 20:47:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887624; bh=mFIBF4zkhKQuS/73jWsWHvsc1rz6ROijEQbrtvRlYf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rglH2SkpLZvO66NzcfbH8q8FsBG6VeUCwzlN09KcD+EjVspLWfK6X3gSncCKnA6xm fLXuYWvBMk1p/nLwGvDmN/XtfkTgMVlWj66/q+nwuSheyEhKp7RAbQSHQQKYbwpwHS LT+DNV+jwx+fYTkGpnUeWBsN25oDJ2iIqbuOnXjo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergei Shtylyov , Mark Brown , Sasha Levin Subject: [PATCH 4.14 031/211] spi: sh-msiof: fix deferred probing Date: Wed, 27 Nov 2019 21:29:24 +0100 Message-Id: <20191127203054.676612454@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203049.431810767@linuxfoundation.org> References: <20191127203049.431810767@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sergei Shtylyov [ Upstream commit f34c6e6257aa477cdfe7e9bbbecd3c5648ecda69 ] Since commit 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq") platform_get_irq() can return -EPROBE_DEFER. However, the driver overrides an error returned by that function with -ENOENT which breaks the deferred probing. Propagate upstream an error code returned by platform_get_irq() and remove the bogus "platform" from the error message, while at it... Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq") Signed-off-by: Sergei Shtylyov Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-sh-msiof.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index db2a529accae8..a7bd3c92356be 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -1283,8 +1283,8 @@ static int sh_msiof_spi_probe(struct platform_device *pdev) i = platform_get_irq(pdev, 0); if (i < 0) { - dev_err(&pdev->dev, "cannot get platform IRQ\n"); - ret = -ENOENT; + dev_err(&pdev->dev, "cannot get IRQ\n"); + ret = i; goto err1; } -- 2.20.1