Commit 826d0562 authored by Kefeng Wang's avatar Kefeng Wang Committed by Will Deacon

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
......@@ -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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment