Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757663Ab2HIQU7 (ORCPT ); Thu, 9 Aug 2012 12:20:59 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:65484 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756250Ab2HIQU5 (ORCPT ); Thu, 9 Aug 2012 12:20:57 -0400 Message-ID: <5023E366.9010603@gmail.com> Date: Thu, 09 Aug 2012 11:20:54 -0500 From: Rob Herring User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Lee Jones CC: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linus.walleij@stericsson.com, arnd@arndb.de, devicetree-discuss@lists.ozlabs.org, broonie@opensource.wolfsonmicro.com, STEricsson_nomadik_linux@list.st.com Subject: Re: [PATCH 1/8] of/irq: Create stub for of_irq_find_parent when !CONFIG_OF References: <1344527635-6163-1-git-send-email-lee.jones@linaro.org> <1344527635-6163-2-git-send-email-lee.jones@linaro.org> In-Reply-To: <1344527635-6163-2-git-send-email-lee.jones@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1472 Lines: 44 On 08/09/2012 10:53 AM, Lee Jones wrote: > of_irq_find_parent is a handy function to use outside the confines of > the Open Firmware subsystem. One such use-case is when the IRQ Domain > wishes to find an IRQ domain for a given device node. Currently it can > not take any notice of the 'interrupt-parent' property. Instead it > just uses the first IRQ controller as it climbs the Device Tree. If > we were to use this as a precursor the resultant controller is more > likely to be correct. Where are you using this? I don't have all the patches in the series. Rob > > CC: Rob Herring > CC: devicetree-discuss@lists.ozlabs.org > Signed-off-by: Lee Jones > --- > include/linux/of_irq.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/linux/of_irq.h b/include/linux/of_irq.h > index 1717cd9..b8e2411 100644 > --- a/include/linux/of_irq.h > +++ b/include/linux/of_irq.h > @@ -83,6 +83,11 @@ static inline unsigned int irq_of_parse_and_map(struct device_node *dev, > { > return 0; > } > + > +static inline void *of_irq_find_parent(struct device_node *child) > +{ > + return NULL; > +} > #endif /* !CONFIG_OF */ > > #endif /* __OF_IRQ_H */ > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/