irqchip/ls-scfg-msi: Use device_get_match_data()
authorRob Herring <robh@kernel.org>
Fri, 20 Oct 2023 13:02:56 +0000 (08:02 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 27 Oct 2023 07:15:44 +0000 (09:15 +0200)
commit08d4c174828d868d314d2475fbcaa1393f0bbba9
treedef8a6d2bbaa6b090e72e38e15c7e45e63ac3212
parent5e7afb2eb7b2a7c81e9f608cbdf74a07606fd1b5
irqchip/ls-scfg-msi: Use device_get_match_data()

Use preferred device_get_match_data() instead of of_match_device() to
get the driver match data in a single step without the unnecessary
intermediate match pointer.

With this, adjust the includes to explicitly include the correct
headers. That also serves as preparation to remove implicit includes within
the DT headers.  of_platform.h currently includes platform_device.h among
others.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20231020130255.2954415-3-robh@kernel.org
drivers/irqchip/irq-ls-scfg-msi.c