]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqchip/irq-vt8500: Use fewer global variables and add error handling
authorAlexey Charkov <alchark@gmail.com>
Tue, 6 May 2025 12:46:18 +0000 (16:46 +0400)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 6 May 2025 13:58:27 +0000 (15:58 +0200)
commit99ad153fbd22fcf7c2bdd774d08fc4bf70029fa6
tree603f1c5f98eb834d617015f5c32594da2f41f77f
parent49f92d3859cdd8534a1cd15037f950c483a5de40
irqchip/irq-vt8500: Use fewer global variables and add error handling

Controller private data doesn't really need to be in a global
statically allocated array - kzalloc it per controller instead,
keeping only one pointer to the primary controller global.

While at that, also add proper error return statuses in the init
path and respective cleanup of resources on errors.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250506-vt8500-intc-updates-v2-5-a3a0606cf92d@gmail.com
drivers/irqchip/irq-vt8500.c