From patchwork Wed Nov 30 01:32:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Warren X-Patchwork-Id: 128372 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 13515B6F75 for ; Wed, 30 Nov 2011 12:32:33 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756637Ab1K3Bcc (ORCPT ); Tue, 29 Nov 2011 20:32:32 -0500 Received: from avon.wwwdotorg.org ([70.85.31.133]:51265 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754661Ab1K3Bcc (ORCPT ); Tue, 29 Nov 2011 20:32:32 -0500 Received: from severn.wwwdotorg.org (unknown [192.168.65.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by avon.wwwdotorg.org (Postfix) with ESMTPS id 380F8630C; Tue, 29 Nov 2011 18:35:35 -0700 (MST) Received: from localhost.localdomain (searspoint.nvidia.com [216.228.112.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by severn.wwwdotorg.org (Postfix) with ESMTPSA id E33F5E40CA; Tue, 29 Nov 2011 18:32:28 -0700 (MST) From: Stephen Warren To: Olof Johansson , Colin Cross Cc: Peter De Schrijver , Rob Herring , Grant Likely , devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, Stephen Warren Subject: [PATCH 1/2] irq: Add dummy irq_domain_add_simple_when not defined Date: Tue, 29 Nov 2011 18:32:22 -0700 Message-Id: <1322616743-31985-1-git-send-email-swarren@nvidia.com> X-Mailer: git-send-email 1.7.0.4 X-NVConfidentiality: public X-Virus-Scanned: clamav-milter 0.96.5 at avon.wwwdotorg.org X-Virus-Status: Clean Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org This prevents users of this API from having to ifdef it. Signed-off-by: Stephen Warren --- include/linux/irqdomain.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index 99834e5..77b1751 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -99,6 +99,8 @@ extern void irq_domain_add_simple(struct device_node *controller, int irq_base); extern void irq_domain_generate_simple(const struct of_device_id *match, u64 phys_base, unsigned int irq_start); #else /* CONFIG_IRQ_DOMAIN && CONFIG_OF_IRQ */ +static inline void irq_domain_add_simple(struct device_node *controller, + int irq_base) { } static inline void irq_domain_generate_simple(const struct of_device_id *match, u64 phys_base, unsigned int irq_start) { } #endif /* CONFIG_IRQ_DOMAIN && CONFIG_OF_IRQ */