Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp773036ybc; Sat, 16 Nov 2019 08:25:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxHrVb4T2EcVhb/gjk2lLQl65XhIRBJQdLzreEC6LNgKED6VPRBV04pl31hdVtxh/+4LAgy X-Received: by 2002:a17:906:8591:: with SMTP id v17mr11120700ejx.185.1573921557696; Sat, 16 Nov 2019 08:25:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921557; cv=none; d=google.com; s=arc-20160816; b=l0Rle9eN3WldE0FPk81J/UepAM1Vvp2TWRq3Ix7w/dHajVT1ue1c1LKUJXmj1jy7XZ OT4mFo8iimAaqpPoXE3UD3LCHqO60wrWKlOcFDaU8ujbRKnxwiQG0arG586Lu4OpTdRX 7PqlKYY3fJo12L3cQR8sXL1vhLtIgFcMQkpd9dA14DkaYWXIfR0qUv4nNg/Dat9PulDw 6wZuYc9t+ZxcMyUrBmaP2JpOVHfDtXK1/0ZqLmZFz0MJNBkok6M+nDEcAnFUEWNeJWpI hTsP1tAaXKcgk1wSYrajpal8bOm7VSse24WappWmahHBD/FTUX0DjIqA5z+R+Efg7bHV fQUw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Np4Od58MfUFBL/RFF9GvKQeDG6f9jwJaFcGz6VbXLb4=; b=bviIrzg+Pl8sJ+4pfobr+QB97f83BElM8in1VonyVe46+HyhEBZ9CNdRQpsJHtsna2 gZ1uCzs3zTlahsMRbsf1c3Jw8AKV2MYQq9EfCVBcg6TFPIoCYYCKv9RtJch2iyyrSISB TS2IlaI0JUPTmwzxwqaJOMczQ2Ij/wA9TlUZs733qcDLCdry1B2X8au4x34kFFLVlCgn FYzcYYy0NwXbgwvhues9eqGuR5aSwLz3GB0iSv4G13gu/vr7WUQRVTBJK5b4EQDEoxrG QApwRlMpt4O+W1IbKhGHzCfaNqpI4P/MuNcbAtJva+nrlVuiV9y+2xkO4cE1ayvPoJQm BbGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=itajPg0A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si7973671eji.269.2019.11.16.08.25.32; Sat, 16 Nov 2019 08:25:57 -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=itajPg0A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732070AbfKPQVI (ORCPT + 99 others); Sat, 16 Nov 2019 11:21:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:47874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728801AbfKPPno (ORCPT ); Sat, 16 Nov 2019 10:43:44 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C96CC207FA; Sat, 16 Nov 2019 15:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919023; bh=ZD3H0fXdo26K8Pbl93wipiv94kNC0IMytMi0VTXQIIU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=itajPg0AeJL1QCAhtt1+MIubp5mTsWR+ay/wbXIvckOE4AmSiTRxqoLE668INt2ak O5OReg0ERYA3jGVr4YAdKRyBEGeG4EE9IT2K7wG+TfbCl8NqgBp/jseUiW+zNN420H raRvYjiQKxJK2TzpBeDt2xZVFyLitscIwYLo58yo= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sergei Shtylyov , Geert Uytterhoeven , Simon Horman , Daniel Lezcano , Eduardo Valentin , Sasha Levin , linux-pm@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 121/237] thermal: rcar_thermal: fix duplicate IRQ request Date: Sat, 16 Nov 2019 10:39:16 -0500 Message-Id: <20191116154113.7417-121-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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