From: Siddharth Vadapalli Date: Mon, 1 Sep 2025 12:03:55 +0000 (+0530) Subject: PCI: j721e: Fix module autoloading X-Git-Tag: v6.18-rc1~60^2~12^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a7f144e18dc5f037d85a0f0d99524a574331098;p=thirdparty%2Fkernel%2Fstable.git PCI: j721e: Fix module autoloading Commit a2790bf81f0f ("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: a2790bf81f0f ("PCI: j721e: Add support to build as a loadable module") Signed-off-by: Siddharth Vadapalli [mani: reworded description] Signed-off-by: Manivannan Sadhasivam Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20250901120359.3410774-1-s-vadapalli@ti.com --- diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c index 6c93f39d02888..cfca13a4c8407 100644 --- a/drivers/pci/controller/cadence/pci-j721e.c +++ b/drivers/pci/controller/cadence/pci-j721e.c @@ -440,6 +440,7 @@ static const struct of_device_id of_j721e_pcie_match[] = { }, {}, }; +MODULE_DEVICE_TABLE(of, of_j721e_pcie_match); static int j721e_pcie_probe(struct platform_device *pdev) {