linux/drivers/soc/imx
Peng Fan 2c6821657c soc: imx8m: Fix match data lookup for soc device
The i.MX8M soc device is registered via platform_device_register_simple(),
so it is not associated with a Device Tree node and the imx8m_soc_driver
has no of_match_table.

As a result, device_get_match_data() always returns NULL when probing
the soc device.

Retrieve the match data directly from the machine compatible using
of_machine_get_match_data(imx8_soc_match), which provides the correct SoC
data.

Fixes: 2524b293a5 ("soc: imx8m: don't access of_root directly")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
2026-05-07 11:45:36 -04:00
..
imx93-src.c soc: imx: imx93-src: No need to set device_driver owner 2023-01-01 13:29:14 +08:00
Kconfig pmdomain: imx: Move Kconfig options to the pmdomain subsystem 2023-10-04 23:40:36 +02:00
Makefile soc: imx: Add SoC device register for i.MX9 2024-12-09 20:31:39 +08:00
soc-imx.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-imx8m.c soc: imx8m: Fix match data lookup for soc device 2026-05-07 11:45:36 -04:00
soc-imx9.c soc: imx9: don't access of_root directly 2026-03-12 16:18:49 +01:00