mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 15:22:21 -04:00
PCI: ultrarisc: Use module_platform_driver()
CONFIG_PCIE_ULTRARISC is a tristate option and may be built as a module. Use module_platform_driver() so the driver uses the standard registration helper for both built-in and module configurations. Leave .remove() unset because the driver registers an internal MSI controller and the IRQs cannot be safely disposed during removal. Signed-off-by: Jia Wang <wangjia@ultrarisc.com> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://patch.msgid.link/20260731-ultrarisc-pci-clk-v4-3-d738b491e49a@ultrarisc.com
This commit is contained in:
@@ -240,7 +240,7 @@ static struct platform_driver ultrarisc_pcie_driver = {
|
||||
},
|
||||
.probe = ultrarisc_pcie_probe,
|
||||
};
|
||||
builtin_platform_driver(ultrarisc_pcie_driver);
|
||||
module_platform_driver(ultrarisc_pcie_driver);
|
||||
|
||||
MODULE_DESCRIPTION("UltraRISC DP1000 DWC PCIe host controller");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
Reference in New Issue
Block a user