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:
d34fdb7
)
arm64: perf: Use the builtin_platform_driver
author
Kefeng Wang
<wangkefeng.wang@huawei.com>
Wed, 10 Aug 2016 12:59:15 +0000
(20:59 +0800)
committer
Will Deacon
<will.deacon@arm.com>
Mon, 22 Aug 2016 09:00:48 +0000
(10:00 +0100)
Use the builtin_platform_driver() to simplify code.
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/perf_event.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm64/kernel/perf_event.c
b/arch/arm64/kernel/perf_event.c
index 838ccf123307df40b97f776ba82fa1b7e8182b25..ea64f0173d6159f6f43b5066c15abcaeb076208d 100644
(file)
--- a/
arch/arm64/kernel/perf_event.c
+++ b/
arch/arm64/kernel/perf_event.c
@@
-1057,8
+1057,4
@@
static struct platform_driver armv8_pmu_driver = {
.probe = armv8_pmu_device_probe,
};
-static int __init register_armv8_pmu_driver(void)
-{
- return platform_driver_register(&armv8_pmu_driver);
-}
-device_initcall(register_armv8_pmu_driver);
+builtin_platform_driver(armv8_pmu_driver);