]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
xen-platform: use builtin_pci_driver
authorGeliang Tang <geliangtang@gmail.com>
Mon, 14 Nov 2016 12:52:26 +0000 (20:52 +0800)
committerJuergen Gross <jgross@suse.com>
Thu, 17 Nov 2016 12:44:26 +0000 (13:44 +0100)
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>
drivers/xen/platform-pci.c

index b59c9455aae1d79753fd4bd9aca72cc1e6ae40a5..112ce422dc2268f25d7266e42797d6ddfa1a8fe4 100644 (file)
@@ -125,8 +125,4 @@ static struct pci_driver platform_driver = {
        .id_table =       platform_pci_tbl,
 };
 
-static int __init platform_pci_init(void)
-{
-       return pci_register_driver(&platform_driver);
-}
-device_initcall(platform_pci_init);
+builtin_pci_driver(platform_driver);