Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp20658ybh; Fri, 17 Jul 2020 17:10:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOjgX4RVfuowNlbCE7i5TDp1moPikvQYe0FltCq1zcz71RB65K63HRq77WLm5A44lDSkSv X-Received: by 2002:a17:906:434c:: with SMTP id z12mr10591734ejm.33.1595031021866; Fri, 17 Jul 2020 17:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595031021; cv=none; d=google.com; s=arc-20160816; b=txvBBXbUzM4Ejkj3kudOjmBO3Gk5/8+Rh11H89rKYA9M0w03sEHLChIhMsJQTDjz2+ +ni39++nXgvmA9eDAaBq4ODHrXGH/gdEOveGzPYuywFaefTsYjVmcSXGF3m63WlNW4W8 JZVzhmAgACb2A8a9QvQq78lQt3UH/XYrYlQZdLaquRErxD9gE08MKJ8hDjAZrNbRxNYD bFRgA9JizDpn+M9ELxSq1PXITqiCC+2eAGWFOOvbCCy/xbgY6S6APiTYfZbaiTt3GoQI ScRh5Od6UOw26Y6nVULnkSzP4x5eMnqciIJSuOrlibwMZKHtZbnLVgsS98ZHPaeUy0Lo J+Rg== 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=9lliIP397BkHUMIYOIiz1lmKlM09rTtKqti3dJZq5NI=; b=r7oihL4MHFRRUl3vc8WO6YSumez3xbD/O7UrL6dMaeQesyGl2oeSW4W5c4WDxVBOVM nuWsQnT4CXhuVVm74tzZ4vxdbJ8UmUrjQi++v5FpZAdexBGkaAC6waEJkFkEiQIvRrIK FzA5l0kcVQk4Mcy/HlfW17/V8VfjTuCgmrndyAiGvmEPSGPPej1GYNsPuomblLpR94Zb lmoHIgUFCfRvY6fgjTj4tExacW68Af767nktF/MP6SaAwWcmiEwY8oXrA5Mv71rZH5fU koBgBlttvF0vOargJN3m9LFoV0cx//Emcp7PqaU3P01oudf7ATvoVsu8tNG7UgB+oOtP zl7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Pc3OXUSR; 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 q8si6001696ejt.753.2020.07.17.17.09.59; Fri, 17 Jul 2020 17:10:21 -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=Pc3OXUSR; 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 S1728785AbgGRAGu (ORCPT + 99 others); Fri, 17 Jul 2020 20:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727981AbgGRAGs (ORCPT ); Fri, 17 Jul 2020 20:06:48 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7201CC0619D2 for ; Fri, 17 Jul 2020 17:06:48 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id m81so13320228ybf.6 for ; Fri, 17 Jul 2020 17:06:48 -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=9lliIP397BkHUMIYOIiz1lmKlM09rTtKqti3dJZq5NI=; b=Pc3OXUSRMtC51Xe5/XMfqVgGHTzqEztWThvDswR20yBvK4q20Xw3ZNE+8dkR19OmDD gDksFj5HOd268anWSSimT3Gn9d+v7SfcYJjjCEJY6k3KED8/Qg0cUFL25Q3MLk3u6WzP 6SQOsdECq3m8nfn4B/G+qcw93FKsucGX6KBj42CnWiZKaOz2sMFI1iIBqIg8B/YnRj6U VozP0QbaLKiXIdIxryY+7xaJJEGEd8+z9ZmQZXSjBMWae0vTANsynMnqxGRMmmAY2Nz7 y01D9HdzUEov/4to4JpMNjFHQb5ZWpIPNEGfCjmvUCtCL/gSUXe19cgBOBtkE/HRrupU dKKw== 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=9lliIP397BkHUMIYOIiz1lmKlM09rTtKqti3dJZq5NI=; b=FEuTXODZhIzUSknPHKnof2JxAMlMyfWBKV8tFiBkDLo8PdSVP8nyeWiJch5YKJgvtt KPAUD886at+abnIMw0rDJKv77Hmf374EothyutDsDCvhe3ZxwRc5pL5HvIvCSIkQ++EO ap5sIgu+xkGxq5vU2lqosAuVwrRoLK0PQjZWntkiNMBxA9dZpb3q36in/zmB0gXMwwN8 YSLNi//UMlO8Cb94EPaW5JOeuT4OdDmad22xjXsJbd0FVDvf5bhB3u1+vyY7I6KzzSH2 85ogCbKdEXgBIqtU2y465UNr67TH9DgbB3y8uX9yWGC/tvupCCG1/9HeDMGknsijy+UY UvBA== X-Gm-Message-State: AOAM531nR4kmi0BaayLJD2q52zWEAomhiGYyYzWqG5clxNo59gDo/Lxy XuHH1t7VF+b4sRm0mkyeTDLBHtYaLunNvLc= X-Received: by 2002:a25:abc5:: with SMTP id v63mr17904281ybi.148.1595030807668; Fri, 17 Jul 2020 17:06:47 -0700 (PDT) Date: Fri, 17 Jul 2020 17:06:36 -0700 In-Reply-To: <20200718000637.3632841-1-saravanak@google.com> Message-Id: <20200718000637.3632841-4-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 3/4] irqchip/mtk-sysirq: 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-sysirq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mtk-sysirq.c b/drivers/irqchip/irq-mtk-sysirq.c index 6ff98b87e5c0..7299c5ab4d10 100644 --- a/drivers/irqchip/irq-mtk-sysirq.c +++ b/drivers/irqchip/irq-mtk-sysirq.c @@ -231,4 +231,6 @@ static int __init mtk_sysirq_of_init(struct device_node *node, kfree(chip_data); return ret; } -IRQCHIP_DECLARE(mtk_sysirq, "mediatek,mt6577-sysirq", mtk_sysirq_of_init); +IRQCHIP_PLATFORM_DRIVER_BEGIN(mtk_sysirq) +IRQCHIP_MATCH("mediatek,mt6577-sysirq", mtk_sysirq_of_init) +IRQCHIP_PLATFORM_DRIVER_END(mtk_sysirq) -- 2.28.0.rc0.105.gf9edc3c819-goog