Skip to content

Commit 334f7d4

Browse files
nxpfrankliMarc Zyngier
authored andcommitted
irqchip: Allow extra fields to be passed to IRQCHIP_PLATFORM_DRIVER_END
IRQCHIP_PLATFORM_DRIVER_* doesn't allow some fields (such as .pm) to be set in the platform_driver structure. Make IRQCHIP_PLATFORM_DRIVER_END variadic so that .pm or another field can be set if needed. Signed-off-by: Frank Li <[email protected]> [maz: revamped commit message] Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent aecd1de commit 334f7d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/linux/irqchip.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ static const struct of_device_id drv_name##_irqchip_match_table[] = {
4444
#define IRQCHIP_MATCH(compat, fn) { .compatible = compat, \
4545
.data = typecheck_irq_init_cb(fn), },
4646

47-
#define IRQCHIP_PLATFORM_DRIVER_END(drv_name) \
47+
48+
#define IRQCHIP_PLATFORM_DRIVER_END(drv_name, ...) \
4849
{}, \
4950
}; \
5051
MODULE_DEVICE_TABLE(of, drv_name##_irqchip_match_table); \
@@ -56,6 +57,7 @@ static struct platform_driver drv_name##_driver = { \
5657
.owner = THIS_MODULE, \
5758
.of_match_table = drv_name##_irqchip_match_table, \
5859
.suppress_bind_attrs = true, \
60+
__VA_ARGS__ \
5961
}, \
6062
}; \
6163
builtin_platform_driver(drv_name##_driver)

0 commit comments

Comments
 (0)