ramips: mt7621_nand: fix MODULE_DEVICE_TABLE reference

The MODULE_DEVICE_TABLE macro was using an incorrect parameter 'match'
instead of the actual device table name 'mt7621_nfc_id_table'.

This fixes the reference to use the correct symbol name, ensuring
proper device table registration for module autoloading.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/21418
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Mieczyslaw Nalewaj 2026-01-07 08:09:29 +01:00 committed by Robert Marko
parent f5c0225a48
commit 10127e2201

View File

@ -1327,7 +1327,7 @@ static const struct of_device_id mt7621_nfc_id_table[] = {
{ .compatible = "mediatek,mt7621-nfc" },
{ },
};
MODULE_DEVICE_TABLE(of, match);
MODULE_DEVICE_TABLE(of, mt7621_nfc_id_table);
static struct platform_driver mt7621_nfc_driver = {
.probe = mt7621_nfc_probe,