Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp19206ybh; Fri, 17 Jul 2020 17:07:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyekgZifpvGdh6hYtl5ogEuLpDh+Z01QxGZBJkhQ5OdjvEbRPN1EYvNrfaGzPyrXjyvXlJ8 X-Received: by 2002:a17:906:469a:: with SMTP id a26mr8159105ejr.198.1595030877854; Fri, 17 Jul 2020 17:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595030877; cv=none; d=google.com; s=arc-20160816; b=Si6mGhgEYuj3adkAuO4iXCVTjuhVrTxueELDgjNH/K4IjIKh9PlVVP5KEHVsycEjZ6 +yButNFpcRFjg9cPn1dDa8yT5bAba9PWP9S3Ynccj6dD4T3yJYL+glI//U4RJsgSS7Ga TesyIx3xv/nL6SbaLcJClxC04w1DqkKzesyOL1KL/odbUprX4xX8AMf9R9xC+W/Ys2xZ BhwH55eblFolvak8Z36ty6T1vq1cpBZuyNCkNGjvKjzD0NmnVVt2jcxmQhfDzyBXbBuf 0uEpASQDzg9UZiTPgnBsqXNKAxtKwJajV8TBQtUOp3XeSqJ57bIud3VAdaJeOl4PxD/e MFsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=cSGrpEWuKSVf97iW7EL4KZRFYPfb7+inZKxBuLQuvAE=; b=wqV7PYO3/jw6yznxP16XmKm5vKPo+PCk51tLLjfqbZTsIxOAODBXV3KHUfLkr7s5yw Cp9W9TYVllajWePjjWVxzsod4KnXZzDFR0GSBDVLFv3FixIvq0kKM/+lvPkfRd1ZefmR rVcF9mJpBAQ5aLOoF7R1MtsO3avdsbFVlZeL6Ij71U10tUjKKIQJrXwEcoq48tGe7sqd Ll+ORk8f7SW55/rY2uRL7g4cxrlas/WoGYvh0xvEqv+2rCjXrsl6Pvadn7nD/8U/7Se1 OVK+bx7zCdjA5/Vg3xwQ36644/CDw5Nrf1mxGO4GfEmyg+OOs52hdxkyh4+Ub4BBjNJl rq3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oFBiOJFo; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si6239752eds.406.2020.07.17.17.07.35; Fri, 17 Jul 2020 17:07:57 -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=@google.com header.s=20161025 header.b=oFBiOJFo; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728828AbgGRAGy (ORCPT + 99 others); Fri, 17 Jul 2020 20:06:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728793AbgGRAGu (ORCPT ); Fri, 17 Jul 2020 20:06:50 -0400 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA93DC0619D2 for ; Fri, 17 Jul 2020 17:06:50 -0700 (PDT) Received: by mail-pj1-x104a.google.com with SMTP id 8so8878124pjk.5 for ; Fri, 17 Jul 2020 17:06:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=cSGrpEWuKSVf97iW7EL4KZRFYPfb7+inZKxBuLQuvAE=; b=oFBiOJFotgQsYiohUpKbkZXbMk0anIOETUAPGMRKbKBtkpfPEd8xLg6XTAXbyZcfoi BwNvvIaw6/t2CBTYGbvsBkLGxWK6++vWST3Aj1KHKgiLKceg0RQ/9jN9Ao2iWcVkzj7h 2Q0AYvvuyzQfl95ZIplngHYn1lLuX9YOT4GvpS3gMS4mvYXyjnqEy+kxckIutRo4ELHv PD8Cy2kj4InW3oDPlbSPrZZ65B1YVO/rND51vigqVYZQjN2CHT4NeULpOgwFAekw8cce JpLLDWTXvh8nLo3nGfEzbkbAHILC+wrXQ/qljDHEhrL2d39+3a69ylcOh6DBU7A+ud7z 0n3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=cSGrpEWuKSVf97iW7EL4KZRFYPfb7+inZKxBuLQuvAE=; b=Bs1FGRqCUwKxTZbCVvmHiyEIPCofBSG2qtnJ1pECvK5kYa7VRd+VoUpFa8DV52FPuX LcJBhDRnwEKZzdBG2udc1WWwoEu7nmOJqLzTPuXHOisXxmUSROE/sMnL2+f+o0Eop3vR Znt+zyWeBuMOjJONbkm2LVVa9/OHpEV/NsIsetcfg0q2n5TrqjZ28BffezmY7y1I6tgR NZgA4lk5HA5PbcKYUo8CpJi1SOBKclSoyvM0JdzDJNyK458UyK0A4vPD+XCRQRnPenim mcr3lsZ6KUdb8v4jIy9ejytBY7BmgmJPuuCQu4ueChSGgkBy3+Ie9CN6JBwIikPrFP/R AaeA== X-Gm-Message-State: AOAM533nr6GbtvOT2mLZxUq1/h/3QpqSWSaE7aQYMcadcY4P5hYkShro ZSpHXbFyhzvWw6wnieB5rCCqPQHi/iD4GcA= X-Received: by 2002:a63:7d16:: with SMTP id y22mr10135672pgc.136.1595030810200; Fri, 17 Jul 2020 17:06:50 -0700 (PDT) Date: Fri, 17 Jul 2020 17:06:37 -0700 In-Reply-To: <20200718000637.3632841-1-saravanak@google.com> Message-Id: <20200718000637.3632841-5-saravanak@google.com> Mime-Version: 1.0 References: <20200718000637.3632841-1-saravanak@google.com> X-Mailer: git-send-email 2.28.0.rc0.105.gf9edc3c819-goog Subject: [PATCH v3 4/4] irqchip/mtk-cirq: Convert to a platform driver From: Saravana Kannan To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Matthias Brugger , Andy Gross , Bjorn Andersson Cc: Saravana Kannan , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, John Stultz , Hanks Chen , CC Hwang , Loda Chou Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver can work as a platform driver. So covert it to a platform driver. Signed-off-by: Saravana Kannan --- drivers/irqchip/irq-mtk-cirq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mtk-cirq.c b/drivers/irqchip/irq-mtk-cirq.c index 69ba8ce3c178..62a61275aaa3 100644 --- a/drivers/irqchip/irq-mtk-cirq.c +++ b/drivers/irqchip/irq-mtk-cirq.c @@ -295,4 +295,6 @@ static int __init mtk_cirq_of_init(struct device_node *node, return ret; } -IRQCHIP_DECLARE(mtk_cirq, "mediatek,mtk-cirq", mtk_cirq_of_init); +IRQCHIP_PLATFORM_DRIVER_BEGIN(mtk_cirq) +IRQCHIP_MATCH("mediatek,mtk-cirq", mtk_cirq_of_init) +IRQCHIP_PLATFORM_DRIVER_END(mtk_cirq) -- 2.28.0.rc0.105.gf9edc3c819-goog