Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp332570pxf; Wed, 31 Mar 2021 04:39:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9rV39Y6vSXL+kd4du/+aTXtaByhPZgevfmAd/OQ9b+5GTQOhNfLoGT1G+yl9dDzGrWktL X-Received: by 2002:a17:906:4015:: with SMTP id v21mr3103860ejj.433.1617190794467; Wed, 31 Mar 2021 04:39:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617190794; cv=none; d=google.com; s=arc-20160816; b=tluXBihH6lkHJbRoJBx7JVJ0jqOgzcsAQFtiNP/F9Rj2NXLhc4Ndh4581kFoxZOfNH xokJdjjPERIWrgaph1XFCPEt7IgptzVm5Y9Q6P1uMlAyHqRDKiZyI4YMXP03zF34BeqL /Rc7asbV9Ci6U9fJFlq6jQGFdDG3DphbDTPjx6gbPiPXUaooSThCvaJKNxmm5dIOuXAY OjCZIGCOvSKT2lqTj5XEirWi2jZqNOA4ANkkAlTXOX9SXd/ZG8rbGO+MPomFyWe6EeGT riPhX6TbzRbk6A9ctp93ShpaAsJeV+ZPlnLcFHYkjrXhZ7kC/iCylIVXhm2q0a/TyYCw Mxgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature :ironport-sdr:dkim-signature; bh=X5Gmo/4ZuyeqnIOkoGKQMLD98RQXFlOM0T/todCgfX4=; b=PvN8zXJ+16NQ8TQbFG2sTvtoMDYu3eU5pEe7+GH4hTtLnRNlvKYfYdtZv+u9xFjm6h lR6w7UCN02xN0ql0Kfx2eRURUNZVVh4dBnXEhb8/ifyTi8I6fHQRh/wEuIPNsxDhbcud l1ahYM3FC3vRXPHPmYM6kT8P0PjXel4Wn0dGw50gqGFejF73SQAnYSc1kLoLvIKD5M61 /R/7ojJ/ngdR7xgUBEspvTOedfEfhC223/TFlSPb8hTjKAXCHXAKYM/AXLLLcDebWLWV 7XIQFsmqjh3ezXEtl1YJpizH7P4b0stIrrlOinOXwCPVXxEc1+HZV4A2t7OQ+Dxqoeaa Lj0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=mxadlR2l; dkim=pass header.i=@tq-group.com header.s=key1 header.b=jDPMc8Tz; 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=tq-group.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc31si1386502ejc.524.2021.03.31.04.39.30; Wed, 31 Mar 2021 04:39:54 -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=@tq-group.com header.s=key1 header.b=mxadlR2l; dkim=pass header.i=@tq-group.com header.s=key1 header.b=jDPMc8Tz; 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=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235325AbhCaLgj (ORCPT + 99 others); Wed, 31 Mar 2021 07:36:39 -0400 Received: from mx1.tq-group.com ([93.104.207.81]:14423 "EHLO mx1.tq-group.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235328AbhCaLgO (ORCPT ); Wed, 31 Mar 2021 07:36:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1617190574; x=1648726574; h=from:to:cc:subject:date:message-id; bh=X5Gmo/4ZuyeqnIOkoGKQMLD98RQXFlOM0T/todCgfX4=; b=mxadlR2l3j++qyFNVou+iMXtMONodT0zze/jLE0D1PqhqIlWbmJ918/k WeVltSdm2kFlr5ribySaAz4ApazWM4UtSWHMdnTk3LGPFaeh2mbt3kmZ+ nFoDLlEPvRiVHrg1WGvxPmGSlm8goQDSN5wtHk7j4Z1E+f4jW49QuJeSX yeua/8DR0UMO3ZElNxTbad3rgRPvahQI2b4r/lJVS/qqcGxnbPbHjrhxn u4pgJiaK2AkT0xlVxVqmcVvJOvZoEX2sy/h5+VGkS0ZjLAseD2PcPzY7U u4fAiq6zx3nhT6EIPq5CSRfnT5ImC7fWcDCUtAxF1e2YMn23FT7az/UaW Q==; IronPort-SDR: EIjX4UL5pgCuvBRGTSXtJMPw7X5B0bbvw/aQMRBVg2YEMIFTTbcBWwkRVWPkn0upGOd6pYSNwz MCur4k6bd6+AOrP/A1xoD8Oy7kDcUnaf9o9P4KujoCcK5j5IrcAaUR1RyqjpebXl9nWVE9kDEn vgO4rvpiZZ0Yt+czPlwhN96MEUouW7nBegO6LBfbiQ1fGRGWj7Nt8a3ogr0Khi4PIAEV5SQuxM lVyryr9lFgCVdJB3jSrNaMBwqcPCWY5hskG2qgM8fJ3n9JFMogkmsirbF4BDdAkkZO2Ocga4uF AcM= X-IronPort-AV: E=Sophos;i="5.81,293,1610406000"; d="scan'208";a="16742380" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 31 Mar 2021 13:36:11 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 31 Mar 2021 13:36:11 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 31 Mar 2021 13:36:11 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1617190571; x=1648726571; h=from:to:cc:subject:date:message-id; bh=X5Gmo/4ZuyeqnIOkoGKQMLD98RQXFlOM0T/todCgfX4=; b=jDPMc8Tz16rDGY2hIW7wv0Cl8HtoQloGLn2ZGebCA4KUv6xD7tVi00Q0 bpXeBHdemRnWLAtX10u3BEWzr2lziBcB6kgyqefzsE40LXcXvctn5Vxbi FMLPrnJDz9qxzXVe4m93AC3+CxsD+19qUAKRgNCkuSkcz6xABgvHAPpKr 2xlYQi53jWRQ8jQ1vS3myZxKhU6WhuINqCjRHAGcv78kYQrUv6CPT020m muV3jO6BtZ88TynkwkyewTEHYnpO74ewOU7cNXjqdbU2Ti28Z+QYekQC4 AH3hWnsSxHcUBg9IJKoc2WhzC4NgRwQ4OHzzK6kWYgS6V+tXXiunMpZmi g==; IronPort-SDR: z4lzFvsXXpZ2CqB61sfz2roATZXvfdKY2stu/02aH0emegtjwe2riikCScvstEOzt0aR2SI3P/ YPiDtR3xNJhKbEo9BWTei5JBHODKf//r3Le5Lk7PD1OqgqkeM3N/1+OEtLtkeNI4woJIeF/u6h mRyVJOpovgwK4mthgRvKEJZd3G6V6Y2DLf5MrCsII5Kt05AZw0gVzt3CZpRJNsfgAi5kq9h7FX d51ZaUlnUMT+wSXfa3Us0eotV2EySJVGZxM7+UC6uJEvq93CWvP3VLBka+p9T3u75FuZXVhyad 214= X-IronPort-AV: E=Sophos;i="5.81,293,1610406000"; d="scan'208";a="16742379" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 31 Mar 2021 13:36:11 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.121.48.12]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id C4CFA280070; Wed, 31 Mar 2021 13:36:10 +0200 (CEST) X-CheckPoint: {60645E92-3-486672D-C0FA7804} X-MAIL-CPID: EC9732B570E100E35CD847992BE1ACF9_2 X-Control-Analysis: str=0001.0A782F29.60645EAB.0011,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 From: Matthias Schiffer To: Linus Walleij , Bartosz Golaszewski Cc: Lee Jones , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Matthias Schiffer Subject: [PATCH 2/3] mfd: tqmx86: clear GPIO IRQ resource when no IRQ is set Date: Wed, 31 Mar 2021 13:35:44 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Matthias Schiffer --- 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.17.1