Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3830333ybb; Mon, 6 Apr 2020 17:03:00 -0700 (PDT) X-Google-Smtp-Source: APiQypIPQJKwytxBqwhbEbChliEd8OrgwFpsPrjXdKrChTZPvD2iislmWMEhVhPNEmAV4BjyLqOF X-Received: by 2002:aca:ef82:: with SMTP id n124mr1392666oih.73.1586217780826; Mon, 06 Apr 2020 17:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586217780; cv=none; d=google.com; s=arc-20160816; b=qPIBovs4EivQYVPSyLT0crGlTr5kOQChO+UfrqZEHhhI6Z48dCzrafE8owtao40NA9 zVCnbmOSjWqytoyDfwmInvtBOVi9WEIVJ69EL/xhrnyYtXpFaMieZJFZR3RCWq11BTS3 //ddWlxsJQO0qeDBm+rTqfQ1ktcUAw96hdaK7Y3t1Ph5HIF47TicQj9fI5z08Uw+Z5UO 2ppsNgc/2RCpT/Uj/oI6QPbmcK5mS4dPxNDvZYETxwh2ePTAGDlAzrOzaL9Fh6GTalie t/hwzetb+vup2Ava2F89QPeFMcKdw5HZ6vGW0ZWYmtxPMM+6dDbnop3kmgOCnrrk6I+D k/yw== 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=n7Nnuyf23OT9OoLx97mpzofrURkMJCYZNCiwruSe9eo=; b=YnwmhdKyJBfINyJx4F4TEfsOWutANdvgHqW5svnV+ojPyhNYHL4xFYzwn+iH0n1em+ oy+WmWLh+Un6maxvY+A2XbT2xwED5HH10PHw/lNkKDOfRZsfldEWm/L+US+6qWY7gDF6 jc8dQbR+UwR1k/eG2Es7Noly5crzOH/+d8lpCFSue4I5XDpp7lZACZAgHksg3siPku+g teWYhl17/nMvq/V/bE2CEwJI4x2hI6D1zqQxQxIxWMAO8RV5Rd3/1imGkraKeXsMVatP 5tTCVGDuDampoefaRYXANvx/xCgg2zvR2gGr+3x4VzvxaANyuN28Gchjf59OoUWSdTfS ebOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="E/NUX8p/"; 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 w17si443088ooc.23.2020.04.06.17.02.49; Mon, 06 Apr 2020 17:03:00 -0700 (PDT) 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="E/NUX8p/"; 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 S1727522AbgDGABs (ORCPT + 99 others); Mon, 6 Apr 2020 20:01:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:35136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727421AbgDGABn (ORCPT ); Mon, 6 Apr 2020 20:01:43 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 2808B208E4; Tue, 7 Apr 2020 00:01:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586217702; bh=Cu0bIJ+vz5khx9IVzUJPi8H2/VKCJ3eiUPqW2uMzAk8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E/NUX8p/xVlJgOX5TJ11GGyc5BoCrNq9dxdwZ1UClrUlJtEqrrM+0DOs7RhR6aV8w KZThioS5YFOmLTykLbDOuGyyuy/h5g+rQ/EaMOQrppganuTCBsU0Tn3GPMj2gw1iqM Oei5qpJxE3FYZ2DBIIK4Crm+OxU8hEoqwCPHQE0c= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Chris Packham , Wolfram Sang , Sasha Levin , linux-i2c@vger.kernel.org Subject: [PATCH AUTOSEL 5.5 35/35] i2c: pca-platform: Use platform_irq_get_optional Date: Mon, 6 Apr 2020 20:00:57 -0400 Message-Id: <20200407000058.16423-35-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200407000058.16423-1-sashal@kernel.org> References: <20200407000058.16423-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: Chris Packham [ Upstream commit 14c1fe699cad9cb0acda4559c584f136d18fea50 ] The interrupt is not required so use platform_irq_get_optional() to avoid error messages like i2c-pca-platform 22080000.i2c: IRQ index 0 not found Signed-off-by: Chris Packham Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- drivers/i2c/busses/i2c-pca-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-pca-platform.c b/drivers/i2c/busses/i2c-pca-platform.c index a7a81846d5b1d..635dd697ac0bb 100644 --- a/drivers/i2c/busses/i2c-pca-platform.c +++ b/drivers/i2c/busses/i2c-pca-platform.c @@ -140,7 +140,7 @@ static int i2c_pca_pf_probe(struct platform_device *pdev) int ret = 0; int irq; - irq = platform_get_irq(pdev, 0); + irq = platform_get_irq_optional(pdev, 0); /* If irq is 0, we do polling. */ if (irq < 0) irq = 0; -- 2.20.1