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: altera: Use builtin_platform_driver() to simplify the code
author
Wei Yongjun
<weiyongjun1@huawei.com>
Sat, 10 Sep 2016 12:31:01 +0000
(12:31 +0000)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 11 Nov 2016 21:18:48 +0000
(15:18 -0600)
Use the builtin_platform_driver() macro to make the code simpler.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-altera.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/host/pcie-altera.c
b/drivers/pci/host/pcie-altera.c
index b0ac4dfafa0bbb116bfc80d754ac612c197171be..eefcb38004fe1e617d2305873a29f3f996159769 100644
(file)
--- a/
drivers/pci/host/pcie-altera.c
+++ b/
drivers/pci/host/pcie-altera.c
@@
-641,8
+641,4
@@
static struct platform_driver altera_pcie_driver = {
},
};
-static int altera_pcie_init(void)
-{
- return platform_driver_register(&altera_pcie_driver);
-}
-device_initcall(altera_pcie_init);
+builtin_platform_driver(altera_pcie_driver);