Skip to content

Commit 9a7f144

Browse files
PCI: j721e: Fix module autoloading
Commit a2790bf ("PCI: j721e: Add support to build as a loadable module") added support to build the driver as a loadable module. However, it did not add MODULE_DEVICE_TABLE() which is required for autoloading the driver based on device table when it is built as a loadable module. Fix it by adding MODULE_DEVICE_TABLE. Fixes: a2790bf ("PCI: j721e: Add support to build as a loadable module") Signed-off-by: Siddharth Vadapalli <[email protected]> [mani: reworded description] Signed-off-by: Manivannan Sadhasivam <[email protected]> Cc: [email protected] Link: https://patch.msgid.link/[email protected]
1 parent 8f5ae30 commit 9a7f144

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pci/controller/cadence/pci-j721e.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ static const struct of_device_id of_j721e_pcie_match[] = {
440440
},
441441
{},
442442
};
443+
MODULE_DEVICE_TABLE(of, of_j721e_pcie_match);
443444

444445
static int j721e_pcie_probe(struct platform_device *pdev)
445446
{

0 commit comments

Comments
 (0)