]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
PCI: j721e: Fix module autoloading
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Mon, 1 Sep 2025 12:03:55 +0000 (17:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:37:34 +0000 (16:37 +0200)
commit 9a7f144e18dc5f037d85a0f0d99524a574331098 upstream.

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 <s-vadapalli@ti.com>
[mani: reworded description]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20250901120359.3410774-1-s-vadapalli@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/controller/cadence/pci-j721e.c

index 5e445a7bda3328b4643a60358c5fc7ad72cdc19f..cf1aa76ea90d41e4f02dcc012b3b0f31d560f7fa 100644 (file)
@@ -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)
 {