Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2354112pxb; Mon, 20 Sep 2021 19:53:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZYQhGIFPfLXB4O5HAP5i64v4OpMvQTdWCgInd0Fw42Mlkc+I25dJSJilS1zXPgX2bOePY X-Received: by 2002:a17:907:2642:: with SMTP id ar2mr31996975ejc.175.1632192792611; Mon, 20 Sep 2021 19:53:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192792; cv=none; d=google.com; s=arc-20160816; b=hb1sL1w1/3LFewvDr3gepRHtd9ey8HXOZ0gLh973EwAMRgWDmEpfHMtsH3o7hu63uJ 2uj+fDHUwKFhABooJzCzaNXcxrOxJwtUsF/7ouQoDcjlGb/8MXvDMJX2YR9PfYnqaf47 b4VwMtR9hobtX2unT8eTO/nz9z7IAb3/yLjwWzhLHaCexShqsuNF/ky+gopI1XrvuF3w 43sgeSjGZMw+OSuCBjBV8JVr1JExJdaVQ7CzsUaZuW6ybqtiiVhKNOqX6kCM3vwNpH6/ J0Rupj996j+z+GoKP5Vztsa9Yz8MW7XFba70LykXvX5CkNi4fZK8kx7NoQMZT7BOADKz abdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=l64ILcK9c+O/RfpE4KKkLGBeI55Oha5vOrCdu9kRHfI=; b=iiFkQwev9DffVp50H1LskAJHqTfPA7ynAmMJ+nUKxEFo6byMA8wowVt2gJDDun+xTl 19V8NjvQhTIOFLMqf614w2+O4qVVAeMDtgdUh31Il5DxDhcGUjQLazf1gTsuFtvyhP3S LVun4qPUISupuEdzhVdM0gnBjwhp7ayTTWzWT9KouL0Zxp+PPn4MlfchSABtTAfuClJZ a38hfpcxHxiQlF0u5GstnWMMSSHC332td2IJLM+eqel6+kqixXhaL5p1Isg8Kyd+dpcP qSoo2CLMGGA+hmeP0WGJ7mbgbZkVC49OEyq/VsECjfW235GI2tRlSXNmjPHAcCbqJg/e JBtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L19DhpTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si18423916ejt.588.2021.09.20.19.52.47; Mon, 20 Sep 2021 19:53:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L19DhpTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386190AbhITSxw (ORCPT + 99 others); Mon, 20 Sep 2021 14:53:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:37312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385521AbhITSue (ORCPT ); Mon, 20 Sep 2021 14:50:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A732C61527; Mon, 20 Sep 2021 17:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159307; bh=iWpQz4tSFoRFavqd00yNJF85NFFxJrunEhC7CELaIIs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L19DhpTv2XJB2QnZO2UVQHuc+00JowPdd/LlRWTyGGmrM6EJDQ0CEV9AlMGcsmln7 9pwb1mrpc13ttlU1yGpZF0gcddZ8DhQ1VYZYVR+n4409wU1D03G0CLJe8BjebeDbSu Lqy64FR4u2MmmjGwIkm11tuNKhav6BlvUcXzX99A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Schiffer , Andrew Lunn , Lee Jones , Sasha Levin Subject: [PATCH 5.14 129/168] mfd: tqmx86: Clear GPIO IRQ resource when no IRQ is set Date: Mon, 20 Sep 2021 18:44:27 +0200 Message-Id: <20210920163925.907385045@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Schiffer [ Upstream commit a946506c48f3bd09363c9d2b0a178e55733bcbb6 ] The driver was registering IRQ 0 when no IRQ was set. This leads to warnings with newer kernels. Clear the resource flags, so no resource is registered at all in this case. Fixes: 2f17dd34ffed ("mfd: tqmx86: IO controller with I2C, Wachdog and GPIO") Signed-off-by: Matthias Schiffer Reviewed-by: Andrew Lunn Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/tqmx86.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/tqmx86.c b/drivers/mfd/tqmx86.c index ddddf08b6a4c..732013f40e4e 100644 --- a/drivers/mfd/tqmx86.c +++ b/drivers/mfd/tqmx86.c @@ -209,6 +209,8 @@ static int tqmx86_probe(struct platform_device *pdev) /* Assumes the IRQ resource is first. */ tqmx_gpio_resources[0].start = gpio_irq; + } else { + tqmx_gpio_resources[0].flags = 0; } ocores_platfom_data.clock_khz = tqmx86_board_id_to_clk_rate(board_id); -- 2.30.2