irqchip/irq-mvebu-icu: Fix works by chance pointer assignment
authorThomas Gleixner <tglx@linutronix.de>
Mon, 21 Nov 2022 14:39:29 +0000 (15:39 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 6 Dec 2022 11:50:17 +0000 (12:50 +0100)
commit55721afa8d8b82e442cb4eaf7173330f79cbfb48
tree067c48005571bebd4ecb4d4070e88fdf917b48e3
parentfa5745aca1dc819aee6463a2475b5c277f7cf8f6
irqchip/irq-mvebu-icu: Fix works by chance pointer assignment

Assigning a void pointer which points to a struct to two different data
types only works by chance if the second type is the first member of the
struct.

Replace this works by chance code by using the primary struct pointer.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221121140048.344525618@linutronix.de
drivers/irqchip/irq-mvebu-icu.c