Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13476459ybl; Sun, 29 Dec 2019 12:50:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxtLwwu2mhbQss0p+ZiMKCkgSkZoBSiewis2M4wEUe8DOFEEpzOx5O7WL5SSus2WWkEZdad X-Received: by 2002:a9d:6f11:: with SMTP id n17mr55949330otq.126.1577652603815; Sun, 29 Dec 2019 12:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652603; cv=none; d=google.com; s=arc-20160816; b=qe4ySXVAINMesMyCfq7WWHuE07T2weSuRyVMImCVx/uy+mAxmSBXwdYFnVAlNkb+wT AyucBQFhnyKYd3Wx7SO/OOzgp/zjnKyEnkmrnKbyCIAZOplpqT3m/VTIOz8LBtjEWRFs +q5lsZWPa9/wwdOQJYpTZFQd5Wjvg1TptocgmJQ6GR4MwKZ2IJrc8NAf7QtzboSRSj3h Vb8fgZNsCacGEDFqwMoQ6bU1h66bLEKc0aehRM8h2UfaK+prY0fIHLVJCLxddOgb4vzy ZQNAwhPugUJpnIijqLeCbGr4vUmbkXZZuQ0/z74i9X/yq6q9kOO82GsPKIvoEkf7Xp4y 4LkQ== 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=0BHiESG3NSWMDPv8PsQn+vKkG2zutB+jb3RNyhH9ma0=; b=i6vfCYvwdwdNZMZ36obdkbag7GGCuK1ppojCvnQtjJO1EAxvGP7asWtjBm1uBLC87q IGbyySoj5771uACgDvqAPHwFyb+N5GeJTaaKpwY3N/MWRXOkb336kXAFp4ypMzjz24F9 J21ExqN/K7lwjEsIuaAjbXcNyvZv5GnWniAb2F/bX0WHG9JaOJaEwg1YP1gEooz0g4LO 2nayMV6NjaRbALuknPPf9F1hYg1EJATwJfJVPhs+ILXizgBIJMUo7FMyStObI6UICRvl FhoB+0BrW8dnaTTZD5hUU7pm5GuxTlgc6lTJvZehps8XCCKl0LnYX914Pug92+Ez8rzy Azbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MLwqp6gS; 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 i15si21004680otk.120.2019.12.29.12.49.53; Sun, 29 Dec 2019 12:50:03 -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=MLwqp6gS; 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 S1733178AbfL2R5D (ORCPT + 99 others); Sun, 29 Dec 2019 12:57:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:47100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733173AbfL2R5B (ORCPT ); Sun, 29 Dec 2019 12:57:01 -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 2FAC0222C3; Sun, 29 Dec 2019 17:57:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577642220; bh=xX3GXCkwGmfzTgKVsOuf/rk8GZHWLEOBxb3PJ8lKHuw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MLwqp6gS6OYOf3WO0ejg/yeUnwzocZLPTvLGakW4nTNoT5X36dgfYvEBB+tdgOwf8 mSzh1m+BoHJBgPDbRxTv8xfxb00meOBAwqCy3XZIS4YOv61Yxlu1vxOYqPMEOc0hZX t+mlrLNAlVY3Lg5H29vtlTxaxz9iGNThEvXfmoOI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Mark Brown , Christophe Leroy Subject: [PATCH 5.4 392/434] spi: fsl: use platform_get_irq() instead of of_irq_to_resource() Date: Sun, 29 Dec 2019 18:27:25 +0100 Message-Id: <20191229172728.361631424@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@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: Christophe Leroy commit 63aa6a692595d47a0785297b481072086b9272d2 upstream. Unlike irq_of_parse_and_map() which has a dummy definition on SPARC, of_irq_to_resource() hasn't. But as platform_get_irq() can be used instead and is generic, use it. Reported-by: kbuild test robot Suggested-by: Mark Brown Fixes: 3194d2533eff ("spi: fsl: don't map irq during probe") Cc: stable@vger.kernel.org Signed-off-by: Christophe Leroy Link: https://lore.kernel.org/r/091a277fd0b3356dca1e29858c1c96983fc9cb25.1576172743.git.christophe.leroy@c-s.fr Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/spi/spi-fsl-spi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c @@ -736,9 +736,9 @@ static int of_fsl_spi_probe(struct platf if (ret) goto err; - irq = of_irq_to_resource(np, 0, NULL); - if (irq <= 0) { - ret = -EINVAL; + irq = platform_get_irq(ofdev, 0); + if (irq < 0) { + ret = irq; goto err; }