Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6032256pxb; Mon, 14 Feb 2022 13:35:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJysAUwGzNpfCXLmHqQUwVtCFPnmstpRmko8Q9zP0gBLvcYuYU0HduCJU+C76QpWySHloZEh X-Received: by 2002:a17:90b:1c01:: with SMTP id oc1mr671084pjb.161.1644874522993; Mon, 14 Feb 2022 13:35:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644874522; cv=none; d=google.com; s=arc-20160816; b=VcouG3UN90Uk6eRH/2Ho9CINo7lQRpjuvihCjGYDDHSFIOoSc7gJMLkjnzyhSk/Etz sKZpADYnB4eGPvPgZ+/UCQom9mcSt47RjDg//fS1YfVBrKys0M/qRx9N4lBXPJgvTLWr KxvdgVAyQRdKT0IIMrQYiAzkpWqa1/ejOCzAVBf4vFV/TiQWyGlWAoikHJ/VFDWe9uA/ mwl5g+KDbyFm8XX3ByXlyJCaZx9ODypElKAFBmikuBBMvInvNDHgW6pb/xbTZL9iTAZ1 mMTeRyn+OV+YU5SD1wFTU5sTnfST/GpEgGcJOq1LeQV3jZIEBAeot4UPAv4eEd7ylL6S avCg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+86Lva2nWXdctV7renNiPdMAVhU1O2KM95YNgJd594E=; b=cx4caw9GuspHXx1cl7Ca4WF0pSQlfAq7cKRBKXdg6yxrycJLYoNzdjpTED2AfUq6kF t/btHCJ4BapiqXjQCGlDNnKvrKMt2vJoW65GVpH5/dktzRmghTMs5XzJmbl3W8sCgnZB ANp5rXvnkWuM9DYTqEUWTaMwtpMDRdtINSZVu9aBhEZXpxXJ3HSWgVofu75TcVpIDjqr 8JMV4wmFK97z8oPDBLwuUIVaHIt+t4WdHPwE1ZivD6wzJrWCcY3DXruha5KcRUu7RiqY LjrAL5tfjG7VhHnJetEMF9v5y+qeNKXU5c/5jC+EsEz1wcX7sM97mEH7Tceos+u4M+CQ LZEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=eOC++pB2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svanheule.net Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s3si13760099plg.526.2022.02.14.13.35.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:35:22 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=eOC++pB2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svanheule.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 79B151451D5; Mon, 14 Feb 2022 12:57:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbiBNU5E (ORCPT + 99 others); Mon, 14 Feb 2022 15:57:04 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbiBNU4u (ORCPT ); Mon, 14 Feb 2022 15:56:50 -0500 Received: from polaris.svanheule.net (polaris.svanheule.net [84.16.241.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE0BB1342E6 for ; Mon, 14 Feb 2022 12:56:25 -0800 (PST) Received: from terra.local.svanheule.net (104.153-136-217.adsl-dyn.isp.belgacom.be [217.136.153.104]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id A555A2A25FA; Mon, 14 Feb 2022 19:57:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1644865026; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+86Lva2nWXdctV7renNiPdMAVhU1O2KM95YNgJd594E=; b=eOC++pB2oI/36x0RFPblsMEWhenygKKH7fBA/mDP3V7yTUMQZUX3CbpJwuZEfr5WhglQTF FNSJjmIxDFa7/kmOSXBLwLKu06K2gs6sa/tUJQuPr/cGEQrLXKsGrlLfJ8EYsrLijZIkDE 9DZK+OBDnJvFMx5Ro/aaGumdb+EQMJI+OiUd1oUj5BRo/DWafP4q7o8aTM2ejh/6OS+/w7 JW5VqdDik5TjKlc5ATsVYqXEv2Qboo39h0FwYK4K1DpxhG98RyzIO4PC6wtYi22qCLL/Gm RUIExlTKvzMFnEWkoHIqhBsHuo8HTCrrbpUrSu0V6I+SEvnyOFWuBfDcsILTkA== From: Sander Vanheule To: Marc Zyngier , Rob Herring , devicetree@vger.kernel.org Cc: Thomas Gleixner , Birger Koblitz , Bert Vermeulen , John Crispin , linux-kernel@vger.kernel.org, Sander Vanheule Subject: [PATCH v5 1/4] irqchip/realtek-rtl: use irq_domain_add_linear Date: Mon, 14 Feb 2022 19:56:58 +0100 Message-Id: X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When using an offset of 0, irq_domain_add_simple is identical to irq_domain_add_linear on DT-based systems, so use the latter instead. Signed-off-by: Sander Vanheule --- drivers/irqchip/irq-realtek-rtl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-realtek-rtl.c b/drivers/irqchip/irq-realtek-rtl.c index 50a56820c99b..14e049eed0f2 100644 --- a/drivers/irqchip/irq-realtek-rtl.c +++ b/drivers/irqchip/irq-realtek-rtl.c @@ -171,8 +171,7 @@ static int __init realtek_rtl_of_init(struct device_node *node, struct device_no /* Disable all cascaded interrupts */ writel(0, REG(RTL_ICTL_GIMR)); - domain = irq_domain_add_simple(node, 32, 0, - &irq_domain_ops, NULL); + domain = irq_domain_add_linear(node, 32, &irq_domain_ops, NULL); ret = map_interrupts(node, domain); if (ret) { -- 2.35.1