Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6017963ybc; Wed, 27 Nov 2019 13:29:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwy5CU2cKSeG+JiPJ5CGxhcnQvNJVoXZLEEgWJqQeWnuPP+D096tZFAYrq5n3TvGWRgT+4A X-Received: by 2002:a17:906:3ec8:: with SMTP id d8mr51884949ejj.55.1574890186425; Wed, 27 Nov 2019 13:29:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890186; cv=none; d=google.com; s=arc-20160816; b=nbiMh9uXWv7cycp4RejY1F+XBbrtFCap0mzW5BnCx1f6zyDnWIfyEOAZKJBTsvl7+g XR8loxnqrMKaQPOv48cf6u0ROVuXPZvqFQH4YgUriuppFvV7+gru2J9GCZvUGBMcEi0j PNFE8Q2wNLIy0GG7qyKIBF7Go41k1EYcM1IP4RSCGMAQGUvvncyXgYEKgvHD7AA86dai PRnoeyTpYI0uEbq/O4C80YpEJe25HPQsvUBvf4kasgLzgsH9s6BdoqphT7lzIBXoTl/m 25Hw7umPJAaakfzJIMkj938+OiD7bLHZcDaSZzyd3O+/eWmvLJ8txhF3CU9fI/ScWgFA uH0A== 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=Np4Od58MfUFBL/RFF9GvKQeDG6f9jwJaFcGz6VbXLb4=; b=jI3KsluImX0jt09o87joAk47gnRSzFeQ4XhSheTc5bBFcV9fDvilBwTtH78SzBnI5E G3av8MEWj5W6JgF0wTogPFbm1Zg+6mCMQjmVcGaJOAvfIt2dngEWt/KjxgQaTLju9It0 1g1k3sFA80WTkvPZl7MrQCAnn+Vrov2+3lzyyyF/5N3OeDq5xPOp4fPlsvV2wyLDu7TT 3iZOlD6RelQtZc12mIssrZXlr/Y3rWfGteC/THg3MOfO0N5lo3HLDt2nsslZsC1KAaY2 3uKZ/ua3Cd1skuqn8a8T9CADVGx3sECbIDu6eawW6pWpjU6ttZHEJgiAsWJcPSJVb40L ltTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SceNPP63; 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 o21si10285270ejj.188.2019.11.27.13.29.22; Wed, 27 Nov 2019 13:29:46 -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=SceNPP63; 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 S1731646AbfK0VA6 (ORCPT + 99 others); Wed, 27 Nov 2019 16:00:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:52950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731342AbfK0VA4 (ORCPT ); Wed, 27 Nov 2019 16:00:56 -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 91394215B2; Wed, 27 Nov 2019 21:00:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888456; bh=ZD3H0fXdo26K8Pbl93wipiv94kNC0IMytMi0VTXQIIU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SceNPP63+HVYP7KivwCRrmircUckduSb/UUw9BAzbAeuKQ/HwH1v5eDiycg1sDHSw 56UiadNhmgVlXlY7/1qTFn3Amjfufnm3lv0wxcVgEKHHLH1r6xrMUSd6kz5AcWNu9z QP4DvhxXNydxWIM7v8LaWObY3yDCP7YVeEw+yf7Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergei Shtylyov , Geert Uytterhoeven , Simon Horman , Daniel Lezcano , Eduardo Valentin , Sasha Levin Subject: [PATCH 4.19 139/306] thermal: rcar_thermal: fix duplicate IRQ request Date: Wed, 27 Nov 2019 21:29:49 +0100 Message-Id: <20191127203125.271605886@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@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 df016bbba63743bbef9ff5c6c282561211dd72cc ] The driver on R8A77995 requests the same IRQ twice since platform_get_resource() is always called for the 1st IRQ resource. Fixes: 1969d9dc2079 ("thermal: rcar_thermal: add r8a77995 support") Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven Reviewed-by: Simon Horman Reviewed-by: Daniel Lezcano Signed-off-by: Eduardo Valentin Signed-off-by: Sasha Levin --- drivers/thermal/rcar_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 8df2ce94c28d8..edaa4058686b7 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -493,7 +493,7 @@ static int rcar_thermal_probe(struct platform_device *pdev) pm_runtime_get_sync(dev); for (i = 0; i < chip->nirqs; i++) { - irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0); + irq = platform_get_resource(pdev, IORESOURCE_IRQ, i); if (!irq) continue; if (!common->base) { -- 2.20.1