Re: [PATCH 11/11] irqchip: Pass platform device to platform drivers

From: Johan Hovold

Date: Tue Oct 14 2025 - 05:04:33 EST


Hi Stan,

On Tue, Oct 14, 2025 at 11:52:40AM +0300, Stanimir Varbanov wrote:
> On 10/13/25 12:46 PM, Johan Hovold wrote:

> > +typedef int (*platform_irq_probe_t)(struct platform_device *, struct device_node *);
> > +
> > /* Undefined on purpose */
> > extern of_irq_init_cb_t typecheck_irq_init_cb;
>
> This is not used anymore?
>
> > +extern platform_irq_probe_t typecheck_irq_probe;
> >
> > #define typecheck_irq_init_cb(fn) \
> > (__typecheck(typecheck_irq_init_cb, &fn) ? fn : fn)
>
> ditto

These are still used by IRQCHIP_DECLARE() (i.e. non-platform OF irqchip
drivers).

Johan