Commit b128cb55 authored by Geliang Tang's avatar Geliang Tang Committed by Will Deacon

arm: perf: use builtin_platform_driver

Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 82bcd087
...@@ -581,9 +581,5 @@ static struct platform_driver armv6_pmu_driver = { ...@@ -581,9 +581,5 @@ static struct platform_driver armv6_pmu_driver = {
.probe = armv6_pmu_device_probe, .probe = armv6_pmu_device_probe,
}; };
static int __init register_armv6_pmu_driver(void) builtin_platform_driver(armv6_pmu_driver);
{
return platform_driver_register(&armv6_pmu_driver);
}
device_initcall(register_armv6_pmu_driver);
#endif /* CONFIG_CPU_V6 || CONFIG_CPU_V6K */ #endif /* CONFIG_CPU_V6 || CONFIG_CPU_V6K */
...@@ -2034,9 +2034,5 @@ static struct platform_driver armv7_pmu_driver = { ...@@ -2034,9 +2034,5 @@ static struct platform_driver armv7_pmu_driver = {
.probe = armv7_pmu_device_probe, .probe = armv7_pmu_device_probe,
}; };
static int __init register_armv7_pmu_driver(void) builtin_platform_driver(armv7_pmu_driver);
{
return platform_driver_register(&armv7_pmu_driver);
}
device_initcall(register_armv7_pmu_driver);
#endif /* CONFIG_CPU_V7 */ #endif /* CONFIG_CPU_V7 */
...@@ -767,9 +767,5 @@ static struct platform_driver xscale_pmu_driver = { ...@@ -767,9 +767,5 @@ static struct platform_driver xscale_pmu_driver = {
.probe = xscale_pmu_device_probe, .probe = xscale_pmu_device_probe,
}; };
static int __init register_xscale_pmu_driver(void) builtin_platform_driver(xscale_pmu_driver);
{
return platform_driver_register(&xscale_pmu_driver);
}
device_initcall(register_xscale_pmu_driver);
#endif /* CONFIG_CPU_XSCALE */ #endif /* CONFIG_CPU_XSCALE */
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