From mboxrd@z Thu Jan 1 00:00:00 1970 From: 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> Return-path: Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Olof Johansson , Colin Cross Cc: Peter De Schrijver , Rob Herring , Grant Likely , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Stephen Warren List-Id: devicetree@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 */ -- 1.7.0.4