Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen-platform: use builtin_pci_driver

Use builtin_pci_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>

authored by

Geliang Tang and committed by
Juergen Gross
1ea55e80 0f06ac3b

+1 -5
+1 -5
drivers/xen/platform-pci.c
··· 125 125 .id_table = platform_pci_tbl, 126 126 }; 127 127 128 - static int __init platform_pci_init(void) 129 - { 130 - return pci_register_driver(&platform_driver); 131 - } 132 - device_initcall(platform_pci_init); 128 + builtin_pci_driver(platform_driver);