Commit 899867ee authored by Mathieu Poirier's avatar Mathieu Poirier Committed by Greg Kroah-Hartman

coresight-etm3x: use module_amba_driver to simplify the code

Using function "module_amba_driver()" makes the code simpler by
eliminating boilerplate code.

Wei Yongjun sent out a set of patches addressing those in all the
coresight driver but missed ETMv3.
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5625988e
...@@ -1916,17 +1916,7 @@ static struct amba_driver etm_driver = { ...@@ -1916,17 +1916,7 @@ static struct amba_driver etm_driver = {
.id_table = etm_ids, .id_table = etm_ids,
}; };
int __init etm_init(void) module_amba_driver(etm_driver);
{
return amba_driver_register(&etm_driver);
}
module_init(etm_init);
void __exit etm_exit(void)
{
amba_driver_unregister(&etm_driver);
}
module_exit(etm_exit);
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("CoreSight Program Flow Trace driver"); MODULE_DESCRIPTION("CoreSight Program Flow Trace 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