summaryrefslogtreecommitdiffstats
path: root/drivers/xen/platform-pci.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-14 20:52:26 +0800
committerJuergen Gross <jgross@suse.com>2016-11-17 13:44:26 +0100
commit1ea55e8078a4fede5c21ea195d4e96091240a6ad (patch)
treecbee0451eaf1fee5fde491f125102928afc240c7 /drivers/xen/platform-pci.c
parent0f06ac3b6616b9793b3fb5c398d94044a0423492 (diff)
downloadlinux-1ea55e8078a4fede5c21ea195d4e96091240a6ad.tar.bz2
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>
Diffstat (limited to 'drivers/xen/platform-pci.c')
-rw-r--r--drivers/xen/platform-pci.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/xen/platform-pci.c b/drivers/xen/platform-pci.c
index b59c9455aae1..112ce422dc22 100644
--- a/drivers/xen/platform-pci.c
+++ b/drivers/xen/platform-pci.c
@@ -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);