mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02: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:
parent
e152c295d3
commit
22a415e623
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user