lkml.org 
[lkml]   [2022]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] irqchip: Make irqchip_init() usable on pure ACPI systems
On Tue, Sep 27, 2022, at 6:55 AM, Huacai Chen wrote:

> @@ -28,7 +28,9 @@ extern struct of_device_id __irqchip_of_table[];
>
> void __init irqchip_init(void)
> {
> +#ifdef CONFIG_OF_IRQ
> of_irq_init(__irqchip_of_table);
> +#endif
> acpi_probe_device_table(irqchip);
> }

I think that #ifdef should be in the include/linux/of_irq.h
header, with an empty inline function in the #else path.

Arnd

\
 
 \ /
  Last update: 2022-09-27 09:52    [W:0.063 / U:1.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site