summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/perf_event.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2016-08-10 14:59:15 +0200
committerWill Deacon <will.deacon@arm.com>2016-08-22 11:00:48 +0200
commit826d05623f3e2b316bbad6204418a0ff1b49a720 (patch)
tree47de43eca14718f10cffc98c9a43fc3a0512108e /arch/arm64/kernel/perf_event.c
parentarm64: mm: convert __dma_* routines to use start, size (diff)
downloadlinux-826d05623f3e2b316bbad6204418a0ff1b49a720.tar.xz
linux-826d05623f3e2b316bbad6204418a0ff1b49a720.zip
arm64: perf: Use the builtin_platform_driver
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>
Diffstat (limited to 'arch/arm64/kernel/perf_event.c')
-rw-r--r--arch/arm64/kernel/perf_event.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm64/kernel/perf_event.c b/arch/arm64/kernel/perf_event.c
index 838ccf123307..ea64f0173d61 100644
--- 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);