projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f06ac3
)
xen-platform: use builtin_pci_driver
author
Geliang Tang
<geliangtang@gmail.com>
Mon, 14 Nov 2016 12:52:26 +0000
(20:52 +0800)
committer
Juergen 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
patch
|
blob
|
history
diff --git
a/drivers/xen/platform-pci.c
b/drivers/xen/platform-pci.c
index
b59c945
..
112ce42
100644
(file)
--- 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);