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:
1001354
)
PCI: spear: Use builtin_platform_driver() to simplify the code
author
Geliang Tang
<geliangtang@gmail.com>
Wed, 23 Nov 2016 14:55:07 +0000
(22:55 +0800)
committer
Bjorn Helgaas
<helgaas@kernel.org>
Wed, 7 Dec 2016 20:32:30 +0000
(14:32 -0600)
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-spear13xx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/host/pcie-spear13xx.c
b/drivers/pci/host/pcie-spear13xx.c
index 3cf197ba7f37baa6dd9613844cd21767e3caef93..dafe8b88d97d8ce192ba8abd44cee9da37efb55e 100644
(file)
--- a/
drivers/pci/host/pcie-spear13xx.c
+++ b/
drivers/pci/host/pcie-spear13xx.c
@@
-296,8
+296,4
@@
static struct platform_driver spear13xx_pcie_driver = {
},
};
-static int __init spear13xx_pcie_init(void)
-{
- return platform_driver_register(&spear13xx_pcie_driver);
-}
-device_initcall(spear13xx_pcie_init);
+builtin_platform_driver(spear13xx_pcie_driver);