arm64: perf: Use the builtin_platform_driver
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 10 Aug 2016 12:59:15 +0000 (20:59 +0800)
committerWill 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

index 838ccf123307df40b97f776ba82fa1b7e8182b25..ea64f0173d6159f6f43b5066c15abcaeb076208d 100644 (file)
@@ -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);