16 Nov
2023
16 Nov
'23
12:15 p.m.
On 16/11/2023 09:32, Shengjiu Wang wrote:
+MODULE_DESCRIPTION("Freescale ASRC M2M driver"); +MODULE_ALIAS("platform:" M2M_DRV_NAME);
You should not need MODULE_ALIAS() in normal cases. If you need it, usually it means your device ID table is wrong (e.g. misses either entries or MODULE_DEVICE_TABLE()). MODULE_ALIAS() is not a substitute for incomplete ID table.
This driver don't have MODULE_DEVICE_TABLE. it is only registered by platform_device_register_data().
Which is the problem. I thought I made myself clear but if it is not the case: drop MODULE_ALIAS.
Best regards, Krzysztof