From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 2/3] of: OF_IRQ should depend on IRQ_DOMAIN Date: Mon, 06 Apr 2015 16:40:59 +0200 Message-ID: <4981781.UvXHorNsu5@wuerfel> References: <1428245965-19618-1-git-send-email-geert@linux-m68k.org> <1428245965-19618-3-git-send-email-geert@linux-m68k.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1428245965-19618-3-git-send-email-geert@linux-m68k.org> Sender: linux-kernel-owner@vger.kernel.org To: Geert Uytterhoeven Cc: Grant Likely , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: devicetree@vger.kernel.org On Sunday 05 April 2015 16:59:24 Geert Uytterhoeven wrote: > If CONFIG_IRQ_DOMAIN=3Dn: >=20 > drivers/of/irq.c: In function =E2=80=98of_irq_get=E2=80=99: > drivers/of/irq.c:406: error: implicit declaration of function =E2=80=98= irq_find_host=E2=80=99 > drivers/of/irq.c:406: warning: assignment makes pointer from integer = without a cast > make[2]: *** [drivers/of/irq.o] Error 1 >=20 > Signed-off-by: Geert Uytterhoeven > --- > drivers/of/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig > index 4c98f14694458794..92adecd3ecb28fc7 100644 > --- a/drivers/of/Kconfig > +++ b/drivers/of/Kconfig > @@ -50,7 +50,7 @@ config OF_ADDRESS_PCI > =20 > config OF_IRQ > def_bool y > - depends on !SPARC > + depends on !SPARC && IRQ_DOMAIN > =20 > config OF_NET > depends on NETDEVICES >=20 Sparc does not set IRQ_DOMAIN, so we can probably simplify this to=20 config OF_IRQ def_bool IRQ_DOMAIN unless you want to keep the sparc antidependency explicit. Arnd