projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/xen/platform-pci.c
b/drivers/xen/platform-pci.c
index b59c9455aae1d79753fd4bd9aca72cc1e6ae40a5..112ce422dc2268f25d7266e42797d6ddfa1a8fe4 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);