Re: [spi:for-next 1/2] drivers/spi/spi-fsl-spi.c:749: undefined reference to `of_irq_to_resource'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 10, 2019 at 04:06:12PM +0100, Geert Uytterhoeven wrote:
> On Tue, Dec 10, 2019 at 3:57 PM Christophe Leroy
> <christophe.leroy@xxxxxx> wrote:

> > Right. That's independent of the present patch though, as the fonction
> > irq_of_parse_and_map() that's being replaced by of_irq_to_resource() is
> > also depending on CONFIG_OF_IRQ.

> That one does exist on SPARC, and has a dummy for !OF_IRQ:

> include/linux/of_irq.h:
> #if defined(CONFIG_OF_IRQ) || defined(CONFIG_SPARC)
> /*
>  * irq_of_parse_and_map() is used by all OF enabled platforms; but SPARC
>  * implements it differently.  However, the prototype is the same for all,
>  * so declare it here regardless of the CONFIG_OF_IRQ setting.
>  */
> extern unsigned int irq_of_parse_and_map(struct device_node *node, int index);

Or can the driver just use platform_get_irq() and not worry about the DT
specific APIs for this bit?  It looks a lot like this bit is legacy code
from when DT had totally separate APIs for everything.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux