From: Kefeng Wang Date: Wed, 10 Aug 2016 12:59:15 +0000 (+0800) Subject: arm64: perf: Use the builtin_platform_driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=826d05623f3e2b316bbad6204418a0ff1b49a720;p=openwrt%2Fstaging%2Fblogic.git arm64: perf: Use the builtin_platform_driver Use the builtin_platform_driver() to simplify code. Signed-off-by: Kefeng Wang Signed-off-by: Will Deacon --- 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);