OSDN Git Service
(root)
/
android-x86
/
kernel.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
|
history
diff --git
a/arch/arm64/kernel/perf_event.c
b/arch/arm64/kernel/perf_event.c
index
838ccf1
..
ea64f01
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);