diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-11-23 22:39:52 +0800 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-02-03 18:46:42 +0000 |
commit | b128cb55f066caeb9859b99795d78e9213a58d2a (patch) | |
tree | fcd0f77e744b0debdf8aa093fccfa1aea99cb509 /arch/arm/kernel/perf_event_xscale.c | |
parent | 82bcd087029f6056506ea929f11af02622230901 (diff) | |
download | op-kernel-dev-b128cb55f066caeb9859b99795d78e9213a58d2a.zip op-kernel-dev-b128cb55f066caeb9859b99795d78e9213a58d2a.tar.gz |
arm: perf: use builtin_platform_driver
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/kernel/perf_event_xscale.c')
-rw-r--r-- | arch/arm/kernel/perf_event_xscale.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/kernel/perf_event_xscale.c b/arch/arm/kernel/perf_event_xscale.c index aa0499e..0e51f5e 100644 --- a/arch/arm/kernel/perf_event_xscale.c +++ b/arch/arm/kernel/perf_event_xscale.c @@ -767,9 +767,5 @@ static struct platform_driver xscale_pmu_driver = { .probe = xscale_pmu_device_probe, }; -static int __init register_xscale_pmu_driver(void) -{ - return platform_driver_register(&xscale_pmu_driver); -} -device_initcall(register_xscale_pmu_driver); +builtin_platform_driver(xscale_pmu_driver); #endif /* CONFIG_CPU_XSCALE */ |