PCI: spacemit: Add missing MODULE_DEVICE_TABLE()

The driver has an OF match table wired to .of_match_table, but does
not export the table with MODULE_DEVICE_TABLE().

Add the missing MODULE_DEVICE_TABLE(of, ...) entry so module alias
information is generated for OF based module autoloading.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260704122538.92830-1-pengpeng@iscas.ac.cn
This commit is contained in:
Pengpeng Hou 2026-07-04 20:25:38 +08:00 committed by Bjorn Helgaas
parent dc59e4fea9
commit e145af8c14

View File

@ -342,6 +342,7 @@ static const struct of_device_id k1_pcie_of_match_table[] = {
{ .compatible = "spacemit,k1-pcie", },
{ }
};
MODULE_DEVICE_TABLE(of, k1_pcie_of_match_table);
static struct platform_driver k1_pcie_driver = {
.probe = k1_pcie_probe,