Received: by 10.223.164.202 with SMTP id h10csp1031416wrb; Thu, 9 Nov 2017 19:52:37 -0800 (PST) X-Google-Smtp-Source: ABhQp+RjFlvbR2dApui7kkOX43OQDxKnrU9e6Komh8ZihXjhsJv+tae7p9vQkWhjZwSIDUYxgWaZ X-Received: by 10.99.111.72 with SMTP id k69mr2691153pgc.21.1510285957652; Thu, 09 Nov 2017 19:52:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510285957; cv=none; d=google.com; s=arc-20160816; b=r5TJZFYr+7/NsssSKOxDV5bI1AnivK3cFShqAkjnlMrvnLRr6s0h0zMzOKGzFEdf0L oD2S2Oq+rhyvQe9BpBN41t9O4EjDUrQG0I6z4PZbp88Vg6xT5rNL1MJTYrVTIM/0ykYE FP/Fw2rc0c9UCAglmyXkL9OCiz1LDJHyBCGnsfl4wx+nLTjp67ZxAEnykAUowjnCbHN/ sCHdQyrlX4xJCuKrWUm45jbDTUffxexHbytqcaqmliS5NxfdIxS6xle8gIrxzbEnBKly JK5Qy0H55ANbQPoT1sDM/E2e+P/h37dPfEvYyJCjNqqJ6VgVIIT4rhrswr/hFDqfMej7 ROGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:arc-authentication-results; bh=c4Nq/ts4Ovt8/aGWlwlpBzh+WPjbGFH20sQW6Tdlfsk=; b=ilIxmZVR+U7rPaMsszpNk+hudJa5YTDHSFPHn1dGouqiiZ5a1PSFle06OXsei+MQuR chByjWR+g3OiyNqiQRgAiTYrXF6r8FcIWCZIdutV7repiki5ZUTzkw6hwJ+SQE99E+hV qpF66mqaQB/PI7fN4Tv/KbDOetrVzGYlkhIyGg5rRTltaL/3EUj2Xk8WSFyTZHCyt0C+ n9q9RcdWCwdjzlgSedHetIiQLFcMYURnhWU+KA6RI9Y2nrkcPOOm0mke4YQ1QcE69eWe q931Xh4j0w/fIQreSBaUgdkBTrr0fGzDDgt+9THg8tZikA0pg3oQAqxgFuj+wxI/W79b 1xNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q190si7552625pga.462.2017.11.09.19.52.25; Thu, 09 Nov 2017 19:52:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964870AbdKJDuY (ORCPT + 83 others); Thu, 9 Nov 2017 22:50:24 -0500 Received: from mail-bl2nam02on0041.outbound.protection.outlook.com ([104.47.38.41]:34528 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964826AbdKJDuL (ORCPT ); Thu, 9 Nov 2017 22:50:11 -0500 Received: from BN6PR03CA0024.namprd03.prod.outlook.com (10.168.230.162) by CY4PR03MB2695.namprd03.prod.outlook.com (10.173.43.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.218.12; Fri, 10 Nov 2017 03:50:09 +0000 Received: from BN1BFFO11FD041.protection.gbl (2a01:111:f400:7c10::1:190) by BN6PR03CA0024.outlook.office365.com (2603:10b6:404:23::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.218.12 via Frontend Transport; Fri, 10 Nov 2017 03:50:09 +0000 Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD041.mail.protection.outlook.com (10.58.144.104) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Fri, 10 Nov 2017 03:50:09 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vAA3nkbK020315; Thu, 9 Nov 2017 20:50:06 -0700 From: Zhao Qiang To: , , CC: , Zhao Qiang Subject: [Patch v13 3/4] irqchip/qeic: merge qeic_of_init into qe_ic_init Date: Fri, 10 Nov 2017 11:31:24 +0800 Message-ID: <20171110033125.991-4-qiang.zhao@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171110033125.991-1-qiang.zhao@nxp.com> References: <20171110033125.991-1-qiang.zhao@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131547594096506761;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(346002)(376002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(189998001)(50466002)(48376002)(2906002)(1076002)(53936002)(4326008)(16586007)(76176999)(86362001)(68736007)(50986999)(2201001)(54906003)(47776003)(316002)(97736004)(110136005)(8936002)(50226002)(5003940100001)(6666003)(8656006)(33646002)(105606002)(2950100002)(104016004)(498600001)(77096006)(5660300001)(106466001)(81156014)(8676002)(305945005)(81166006)(36756003)(356003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR03MB2695;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD041;1:XluHsJyjv8VQDfzi6QhGLrdAWPRUgw9uWFfsBrW9gC997KyhzQX1Ijjg1QEyUMxPNcLoAXZVc9BSSXJ0rKr36Oc1ujjAX16QQG0t2sx8i42ufGFOFsj09J/vN6n+/yBX MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ca24cf16-c2d2-40ac-8b20-08d527ee238f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603256);SRVR:CY4PR03MB2695; X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2695;3:zukAlxrfIA7XKoXgjeSm2H9arm1Xf4v5/TfYrouKXPzCNyh/N1O1MU2baltM05ZFO39zyQUVCsK10o/rQhHcvBS+MCLBLIA8UVGgQh1LBm0TgoQZC3WYbJRoecc4GPKofpp4rTWEt8MuQrlP5Ghi7UGnneLutZ2fPPNbu7KWGeG33XNPqPTKqiFJf/vss37aHvWKO8pY422duciDNmOAbPTxC4HULRCBgS5sTgIZX594qTkO/gByiGvyZI0wQdcn0wekiAzJwitPoFSoDLeoFNK6N1Y5H0UHw+rU6wFpCwk5auQEw2iX+CNiBqsdkfywMF9EsnR+JXUmMGBc7qQUvQmJk6wLZIh8dhtUG9GPpJ0=;25:SqDfjsHKFvV9ISlayWWcGp3BPNYmKlS5ndbYo9f+ksjCHpi5ZYegwSUsx7fKv3ApoSUSvnotyN/Cyy0eT5b0N9DTQxyOju9IpwJZtBV4fuqeWea0fRoojVVYPep8z3Zox4JPLd+cyexlkLMcpgYXTahZCzg1aimUcgnsTEdHCgqZMK5E7uKpEbrX1usEhS+md47OFM8yzXjH7lNfec0AHrW4pzm90UQo02g9jTi0FhzY+4CONUfu2x4jGekiJGcpRfW7muYX5kDzgarmLF/e3oStmJpl0s7cSBMpzXu8GasMuzJ6zgAlxJPxVq3FnYxslLrS2NMZ/9YiaobEregqxQ== X-MS-TrafficTypeDiagnostic: CY4PR03MB2695: X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2695;31:odtqr6Ehimo2+nawNa8q064eZ0bw/1/QKOgAv8Hc3YPSvpwFDtBw8+CxidZ+GibYNte7KI89IsudX8wf4TL0S8aOeBJSDFRaQInrQKcf6SYtnFHTk00jlMjXAcNNgznMyp6zcKSwPaAdLTqkTc0vMIzdvr8I95D2083BG8BaADhKNpU56q5LxE5xVNGB/deFEtXEeNw4ckj6v9TgYwOLgJ/QtmNgxEmnQnOnmGYDa4M=;4:Z7JzCIN74s52RAHEQH0BxvTGx7TEEyLYzj4jsPusrn5T+vB7CrAtKWmR/N0vc/1H57jILH6hvVHmtaMi/GOr4F5abP8mzOhl1n29nuUyymg4HsRs1z783hYVnko8KJBTaMMLcqLhXBDCInpunmRHwGs8rsmMosZbN2UQeZbP0j3DmHyWwKQ2PKMlnvAHR9aRGXczf5joKa6ggSYHuiVmTJMhX5FbSvfnjsYiPeMh9ZjJo1pg8yAk2SoglxlAK8ZUP1Vx1q1+CBkXrRo2LzQkZUlTlsCtFTtalXeT4oDBcZQSYvOUGkV/ecOOk6VssXWQ X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3231021)(100000703101)(100105400095)(3002001)(6055026)(6096035)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123556025)(20161123565025)(20161123559100)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY4PR03MB2695;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY4PR03MB2695; X-Forefront-PRVS: 0487C0DB7E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR03MB2695;23:ASHRA+rLcQfqpwRUy0YXjvkPmPDfnund5diA5h6D2?= =?us-ascii?Q?R84jRyzI92iH1mXbf/sRG4da2HCeBWhH/+G2a4HbTJCUXuJRLgiOJ8tftuaX?= =?us-ascii?Q?pp0b7JkmuTKnyd/tBki+fNC2i4KVrbDTI3gMzqO5m57BDLiJ6yJ3EOcsN42K?= =?us-ascii?Q?y75Ch7zIV85zqWSZMHSCUAmXwTUqMKL2YYzTGoKr7pBjO9yqTKT7BK20PiFI?= =?us-ascii?Q?Y01pEpEr7vWp3qg0bY0pkskRk4c5pYeCM9udVYcWH9u6/uEg7t8q3VfRiLw2?= =?us-ascii?Q?oH/buYu4zd3tN2uzoLuqOs9Tq5rXuxhdrYhapMVtwcBUIUF5RMHDh+F84E3d?= =?us-ascii?Q?G/60lDmhW0mlYjzKegJvEpnc20UyqUmmSldAsauNtAQbAHwncm5t9sMwvUw0?= =?us-ascii?Q?kNXnyVBTy+St4xbJ2QbM4mknMAAn7Q0lDKRW0/ede4sKRQQ2YeTAARhg79X9?= =?us-ascii?Q?cObeu8QI2ehWTGgfPJGBfVDdittI6g9MLhURCFPOFaA78bBQezz1LDsT5qxk?= =?us-ascii?Q?itLj6Yqau6/lm8Pg+bXcYMtBW7Ss79IivdJhMIcWu4FFOZIh90BTEp9ip4jY?= =?us-ascii?Q?JBNdXjsYVIpMrH8Vxs7/URtl7Kf1/uF444RyVXoHfYQcY8aG9jCQmcXhv1z0?= =?us-ascii?Q?6DdXrKWIlkKPzsxUxoF3xGH9LUdJgDfZGID+sQVsKjvHmRQ3QkqmNCgmOpi6?= =?us-ascii?Q?q4fXClmbHTYZLLX0kGYvF0ccxwqTFVciVU83jJBxibBjDSCIr8agvw2e8hHR?= =?us-ascii?Q?Bxhvy3kP9upBdBKg/vZ5k1mQUHePPqodjeaGlPpNPeagxprxWKsynmMbFtMI?= =?us-ascii?Q?mIwHMdpRwVTEQWmc56adUYwfff5aUOg7xbPM0fA9JVgtgsSWSwKDVhgS6a0i?= =?us-ascii?Q?X1whqMjK4pAv9CwmMZklnMtx1myRAth6rZuxmp/xnVpSLoFJmdDwTLzNVjQ2?= =?us-ascii?Q?KbVIkjV5MP9l5fIV+8VDnQSFm+KsG1AS4yIBd19ZLcO7rihHU2WSPb3DKg06?= =?us-ascii?Q?gnkRlJbO4LWVChvQThCOmXqn7eTxf320xNsbzRxxTRZ5FD6kjPBRWPkAh1V9?= =?us-ascii?Q?kLSXE4VAeNHZAkbshMFhhwv+bORZhRPWp+IHKHEDRvlOUDhbuEFm05/VlkWH?= =?us-ascii?Q?ufpyuv8ty7+ulXsghgxSNBwRQBQAchcFbVo48y/6uqodOI58ChZ2A=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2695;6:Bo+7nUXPptRWx7h9SLLQN4jhBQmDqaHen7DDbCUZe78vOwHlu8aaUnXNtXjzJdEJ2y29Hu2lCMTgGXLOL4CHWI9raHprSOivDdXO/n/uf5fGnnatDojZTjUKkkOwDwcTsrXq/zyGG2xVUkOJPJAYk84Ek1KUPD8yEjJM/muT8RRYE94O5vu052R/d3gFQK594Xc17aaKAojKfOx4EfeJ++DeuQbgHCb/s6jgD35kcK6wLzD2N5/RghZkNZJkvmop0WEkKWNDwV+YEyGpu9iVu8rSD4An3y7NJjgzbIAXnlNeYkwMsr/iM+e+c3+KGAdHhFC52UicrFowWP3ApiWSGHS3IMQte4g4X4zhXaI0YAg=;5:ZVOkjMIsA4EhBY5NTpn1zgYekxOLsak6UxdEb1bt++66xOfqTzYnBfmA7g6ndDAGKs/25B+N1eCVVC2JF9s+KHdBgzNCg71n+JTdsqqDx/k1mL+r50i1n58SoLLonyRPgQ2bGGRoC7QalQ7Bv7zu13CQRC9eDbEO1ooUygxFpxg=;24:8dnXaUazyIoaa49LBsN4TqwKgw1SuOGUBrRMjhcGZMFctRQqskkViD7tcv2mOnf5KduWr4Ayok4WV50X18xZ7YM5Aq5XpNO9YAZBi5OA+8A=;7:WafRbA03kzF2816YfBoRxtR9U7262P7xfumE1bSmi1ZYgxLZ7Vyj0i8oLuk6QQl2Y6huJ/Si1uwINYhz5FguS+M+W2fCmMxD9gehf4eEybUMJ87XHEtMAH8elWYO265IlobuxANR2UAiV13GNK7kzyzMH4HbBV3Tt0UHmTtpGkJxCbpvzXBf+cYO30t3e82tx4QMD4tpFyhiauzNkBkG7H0xTY4QZspvpavHbQsTBoAzg0U5hFezNLcOOmsO+OA8 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2017 03:50:09.3386 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ca24cf16-c2d2-40ac-8b20-08d527ee238f X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2695 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org qeic_of_init just get device_node of qeic from dtb and call qe_ic_init, pass the device_node to qe_ic_init. So merge qeic_of_init into qe_ic_init to get the qeic node in qe_ic_init. Signed-off-by: Zhao Qiang --- drivers/irqchip/irq-qeic.c | 109 ++++++++++++--------------------------------- include/soc/fsl/qe/qe_ic.h | 7 --- 2 files changed, 29 insertions(+), 87 deletions(-) diff --git a/drivers/irqchip/irq-qeic.c b/drivers/irqchip/irq-qeic.c index 673afb439839..0bfd12ed6550 100644 --- a/drivers/irqchip/irq-qeic.c +++ b/drivers/irqchip/irq-qeic.c @@ -407,27 +407,29 @@ unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic) return irq_linear_revmap(qe_ic->irqhost, irq); } -void __init qe_ic_init(struct device_node *node, unsigned int flags, - void (*low_handler)(struct irq_desc *desc), - void (*high_handler)(struct irq_desc *desc)) +static int __init qe_ic_init(struct device_node *node, struct device_node *parent) { struct qe_ic *qe_ic; struct resource res; - u32 temp = 0, ret, high_active = 0; + int ret = 0; ret = of_address_to_resource(node, 0, &res); - if (ret) - return; + if (ret) { + ret = -ENODEV; + goto err_put_node; + } qe_ic = kzalloc(sizeof(*qe_ic), GFP_KERNEL); - if (qe_ic == NULL) - return; + if (qe_ic == NULL) { + ret = -ENOMEM; + goto err_put_node; + } qe_ic->irqhost = irq_domain_add_linear(node, NR_QE_IC_INTS, &qe_ic_host_ops, qe_ic); if (qe_ic->irqhost == NULL) { - kfree(qe_ic); - return; + ret = -ENOMEM; + goto err_free_qe_ic; } qe_ic->regs = ioremap(res.start, resource_size(&res)); @@ -438,42 +440,30 @@ void __init qe_ic_init(struct device_node *node, unsigned int flags, qe_ic->virq_low = irq_of_parse_and_map(node, 1); if (qe_ic->virq_low == NO_IRQ) { - printk(KERN_ERR "Failed to map QE_IC low IRQ\n"); - kfree(qe_ic); - return; - } - - /* default priority scheme is grouped. If spread mode is */ - /* required, configure cicr accordingly. */ - if (flags & QE_IC_SPREADMODE_GRP_W) - temp |= CICR_GWCC; - if (flags & QE_IC_SPREADMODE_GRP_X) - temp |= CICR_GXCC; - if (flags & QE_IC_SPREADMODE_GRP_Y) - temp |= CICR_GYCC; - if (flags & QE_IC_SPREADMODE_GRP_Z) - temp |= CICR_GZCC; - if (flags & QE_IC_SPREADMODE_GRP_RISCA) - temp |= CICR_GRTA; - if (flags & QE_IC_SPREADMODE_GRP_RISCB) - temp |= CICR_GRTB; - - /* choose destination signal for highest priority interrupt */ - if (flags & QE_IC_HIGH_SIGNAL) { - temp |= (SIGNAL_HIGH << CICR_HPIT_SHIFT); - high_active = 1; + pr_err("Failed to map QE_IC low IRQ\n"); + ret = -ENOMEM; + goto err_domain_remove; } - qe_ic_write(qe_ic->regs, QEIC_CICR, temp); - irq_set_handler_data(qe_ic->virq_low, qe_ic); - irq_set_chained_handler(qe_ic->virq_low, low_handler); + irq_set_chained_handler(qe_ic->virq_low, qe_ic_cascade_low_mpic); if (qe_ic->virq_high != NO_IRQ && qe_ic->virq_high != qe_ic->virq_low) { irq_set_handler_data(qe_ic->virq_high, qe_ic); - irq_set_chained_handler(qe_ic->virq_high, high_handler); + irq_set_chained_handler(qe_ic->virq_high, + qe_ic_cascade_high_mpic); } + of_node_put(node); + return 0; + +err_domain_remove: + irq_domain_remove(qe_ic->irqhost); +err_free_qe_ic: + kfree(qe_ic); +err_put_node: + of_node_put(node); + return ret; } void qe_ic_set_highest_priority(unsigned int virq, int high) @@ -570,45 +560,4 @@ int qe_ic_set_high_priority(unsigned int virq, unsigned int priority, int high) return 0; } -static struct bus_type qe_ic_subsys = { - .name = "qe_ic", - .dev_name = "qe_ic", -}; - -static struct device device_qe_ic = { - .id = 0, - .bus = &qe_ic_subsys, -}; - -static int __init init_qe_ic_sysfs(void) -{ - int rc; - - printk(KERN_DEBUG "Registering qe_ic with sysfs...\n"); - - rc = subsys_system_register(&qe_ic_subsys, NULL); - if (rc) { - printk(KERN_ERR "Failed registering qe_ic sys class\n"); - return -ENODEV; - } - rc = device_register(&device_qe_ic); - if (rc) { - printk(KERN_ERR "Failed registering qe_ic sys device\n"); - return -ENODEV; - } - return 0; -} - -static int __init qeic_of_init(struct device_node *node, - struct device_node *parent) -{ - if (!node) - return -ENODEV; - qe_ic_init(node, 0, qe_ic_cascade_low_mpic, - qe_ic_cascade_high_mpic); - of_node_put(node); - return 0; -} - -IRQCHIP_DECLARE(qeic, "fsl,qe-ic", qeic_of_init); -subsys_initcall(init_qe_ic_sysfs); +IRQCHIP_DECLARE(qeic, "fsl,qe-ic", qe_ic_init); diff --git a/include/soc/fsl/qe/qe_ic.h b/include/soc/fsl/qe/qe_ic.h index 1e155ca6d33c..611369904f6e 100644 --- a/include/soc/fsl/qe/qe_ic.h +++ b/include/soc/fsl/qe/qe_ic.h @@ -58,16 +58,9 @@ enum qe_ic_grp_id { }; #ifdef CONFIG_QUICC_ENGINE -void qe_ic_init(struct device_node *node, unsigned int flags, - void (*low_handler)(struct irq_desc *desc), - void (*high_handler)(struct irq_desc *desc)); unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic); unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic); #else -static inline void qe_ic_init(struct device_node *node, unsigned int flags, - void (*low_handler)(struct irq_desc *desc), - void (*high_handler)(struct irq_desc *desc)) -{} static inline unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic) { return 0; } static inline unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic) -- 2.14.1 From 1583668899271355090@xxx Fri Nov 10 08:59:14 +0000 2017 X-GM-THRID: 1583571492560347288 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread