mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
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:
parent
dc59e4fea9
commit
e145af8c14
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user