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