Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5977786ybc; Wed, 27 Nov 2019 12:46:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxXW8/+M/GX49Yotf2/r+s9LVru1PUAb34VaIExeneIzR7OLS8k/AQMofXrgQsOvORmrvI0 X-Received: by 2002:a50:eb91:: with SMTP id y17mr34286185edr.216.1574887575264; Wed, 27 Nov 2019 12:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574887575; cv=none; d=google.com; s=arc-20160816; b=CwzBrE0lbuFTeWKq2C1MlgbRpotsUN+8BCJO4REvOe24f4nT9+dwryEutkCEL76TuV lIzJdW1Zu3lbruPNVojoTSHhARhcJ7ZL/tCQL7KaoXj2qFDNhN5wKNwgSeFDYMbMuqZw CrfETlRahl6J3ghg5TbZwSRwYAWsoZ8e9f/0pWOknpUpTd2qZvOjLHn2bieec7ZTYl8+ snou+bo1gGxRro2bXxXwHPoyCU8J1vj1y5N0ic7mZqQJqstdFIpxivDIdheCL6PNvnKa yzP2G0Kj6sMALfW0SK8P8peod3Isg4lo5TMsvTwWdWQzYrjUixPq8i/PlaPFJ74qViFM 3rXw== 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=/CfZfdvs61UYYGjoKSpMrcRf5qmYGQGv+XMs9wZWuM0=; b=a6GelyjDWdfxZlMR7ppBokH8wbWkLho7L/HaD/SP7bkqfWGkeihARolsJD05Y/ShJd OiROH4sxOq5HPlkf5Mz7w9WVHZS65G1PNkCpLaZYYrSqNuWsvnn/zuf91BLxS01Xtab1 6sVrdToQqxdQM8tpnptGWKAQy4TNLOST6Ampf1z3EfDf8gXNvEucu+nHEKAh2F8vrLAv en+POkjIO3VldpabElCvzCLTgttr/XqH3VoM2mCNw4o9/FZEacHimET6p9l2rb2gn3WN b/uVZ7iQwdc20zFhs8x9DEuBs36be9Bl6wv/CaWF8Lh/NWROjxuqjvb148lqCTgDabkl IIKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gDlOyDzT; 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 o10si13055846edj.316.2019.11.27.12.45.51; Wed, 27 Nov 2019 12:46:15 -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=gDlOyDzT; 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 S1728110AbfK0UlX (ORCPT + 99 others); Wed, 27 Nov 2019 15:41:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:46398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729155AbfK0UlR (ORCPT ); Wed, 27 Nov 2019 15:41:17 -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 EB988215A4; Wed, 27 Nov 2019 20:41:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887277; bh=qls5kbsWPuCDNYYjX0eEPWKHkVav8I4/1tEG+ikA4aA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gDlOyDzT+N3Dxy6tg//hcS4IylLB6+PpBNIJR/Y5eOexyaqBl4sn8NxnzdcB3FjY5 xqC3Ganu0LikH3duxBnu8hTU63TkyFe1tQyB/ySGEGRopPgFbBinuvKBEEqMmiF7KP eKtHM5p05q383OqUMl+zX/XmhFIJZ2b1pXe0QHKk= 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.9 021/151] spi: sh-msiof: fix deferred probing Date: Wed, 27 Nov 2019 21:30:04 +0100 Message-Id: <20191127203013.966868637@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203000.773542911@linuxfoundation.org> References: <20191127203000.773542911@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 711ea523b3251..8a69148a962a8 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -1198,8 +1198,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