Skip to content
Snippets Groups Projects
Commit 826d0562 authored by Kefeng Wang's avatar Kefeng Wang Committed by Will Deacon
Browse files

arm64: perf: Use the builtin_platform_driver


Use the builtin_platform_driver() to simplify code.

Signed-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent d34fdb70
No related branches found
No related tags found
No related merge requests found
...@@ -1057,8 +1057,4 @@ static struct platform_driver armv8_pmu_driver = { ...@@ -1057,8 +1057,4 @@ static struct platform_driver armv8_pmu_driver = {
.probe = armv8_pmu_device_probe, .probe = armv8_pmu_device_probe,
}; };
static int __init register_armv8_pmu_driver(void) builtin_platform_driver(armv8_pmu_driver);
{
return platform_driver_register(&armv8_pmu_driver);
}
device_initcall(register_armv8_pmu_driver);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment