Commit 9a7f144e authored by Siddharth Vadapalli's avatar Siddharth Vadapalli Committed by Manivannan Sadhasivam
Browse files

PCI: j721e: Fix module autoloading



Commit a2790bf8 ("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: a2790bf8 ("PCI: j721e: Add support to build as a loadable module")
Signed-off-by: default avatarSiddharth Vadapalli <s-vadapalli@ti.com>
[mani: reworded description]
Signed-off-by: default avatarManivannan Sadhasivam <mani@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20250901120359.3410774-1-s-vadapalli@ti.com
parent 8f5ae30d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)
{