From patchwork Thu Oct 15 10:36:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 7404681 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 24381BEEA4 for ; Thu, 15 Oct 2015 10:38:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 522B420850 for ; Thu, 15 Oct 2015 10:38:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4BC132084D for ; Thu, 15 Oct 2015 10:38:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZmfuO-0002kE-AA; Thu, 15 Oct 2015 10:37:16 +0000 Received: from mail-pa0-f52.google.com ([209.85.220.52]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZmfuL-0002Xe-Ao for linux-arm-kernel@lists.infradead.org; Thu, 15 Oct 2015 10:37:14 +0000 Received: by pabur7 with SMTP id ur7so1958276pab.2 for ; Thu, 15 Oct 2015 03:36:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Gh79SaYgQ8pjI+EQkkbXMjeqGhGeAZQxb9ixwyUDfvQ=; b=YW9R/1Qro1yJz1cpP85FiKRnXMcNd99MBnshWSLgaChcai6GbsRUXYuy7Cr6zBUuRe T7KtUlBSdfvTkXnpv8XneEnyFWBhEgn2XqDibMR4ZBepLzSaY846hl20LWZakYOmXoHc O1X38kEkypTWvMhGeIY1f/dwXIzE0qrqMLmkvpTrMQJE8Q1sBtsWXZb9NkAdrh4urUXH h+U3LBf8n/7z4UstLX+fAU+GxOhZiWNPNHSOhy3JHTfvmhb+MKpW+G4BuGcXJm8Zs1qQ to3tebm4wx4TN0QmS+/BPJBENtkXIK5vaDMDJNUT1NFLr0CvjZx+04HFNUgV797D1nfI hhEA== X-Gm-Message-State: ALoCoQmUhJzbRAJ6ytXbXWcWqiYyrpZH2moi2E7cRTl+sxXxs0J7UmoKlurXdkc9LRpf6dicCxQQ X-Received: by 10.66.157.72 with SMTP id wk8mr9221291pab.132.1444905412194; Thu, 15 Oct 2015 03:36:52 -0700 (PDT) Received: from localhost.localdomain ([180.150.157.4]) by smtp.gmail.com with ESMTPSA id kp4sm14639420pbc.34.2015.10.15.03.36.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Oct 2015 03:36:50 -0700 (PDT) From: Zhangfei Gao To: Rob Herring , Arnd Bergmann Subject: [PATCH] of/irq: export of_irq_count Date: Thu, 15 Oct 2015 18:36:42 +0800 Message-Id: <1444905402-10510-1-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151015_033713_396798_EDA9F040 X-CRM114-Status: GOOD ( 10.73 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zhangfei Gao , John Garry , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Export of_irq_count, otherwise module build fail if of_irq_count is used Signed-off-by: Zhangfei Gao Signed-off-by: John Garry Acked-by: Arnd Bergmann --- drivers/of/irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 0c7f4cbe3434..0d149cc48cfe 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -448,6 +448,7 @@ int of_irq_count(struct device_node *dev) return nr; } +EXPORT_SYMBOL_GPL(of_irq_count); /** * of_irq_to_resource_table - Fill in resource table with node's IRQ info