PCI: altera-msi: convert to subsys_platform_driver()
PATCH 1/1 PCI: altera-msi: convert to subsys_platform_driver()
Reduce boilerplate code in this driver and convert it over to use the macro subsys_platform_driver().
Signed-off-by Brian Masney <[email protected]>
--- drivers/pci/controller/pcie-altera-msi.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
drivers/pci/controller/pcie-altera-msi.c +1 -11
@@ -267,18 +267,8 @@ static struct platform_driver altera_msi_driver = { .remove = altera_msi_remove, }; -static int __init altera_msi_init (void ) -{ -return platform_driver_register (&altera_msi_driver); -} +subsys_platform_driver (altera_msi_driver); -static void __exit altera_msi_exit(void) -{ -platform_driver_unregister (&altera_msi_driver); -} - -subsys_initcall (altera_msi_init);MODULE_DEVICE_TABLE (of, altera_msi_of_match); -module_exit (altera_msi_exit);MODULE_DESCRIPTION ("Altera PCIe MSI support driver" );MODULE_LICENSE ("GPL v2" );
---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
change-id: 20261106-pci-subsys-8176914a5f6e
Best regards,
Signature · 1 line
Brian Masney <[email protected]>
[email protected]
AI reviewSashiko has reviewed this patch and found no issues.
Quoted 4 lines
Reduce boilerplate code in this driver and convert it over to use the macro
subsys_platform_driver().Signed-off-by Brian Masney <[email protected]>
Sashiko has reviewed this patch and found no issues.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1