Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7183de2 authored by Mathieu Poirier's avatar Mathieu Poirier Committed by Shashank Mittal
Browse files

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.

Change-Id: I0d4abdd401443a623494c25995236bc2b556e457
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 899867ee6c1ccaa4f4580c5b14e25505e6e17b7d
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarShashank Mittal <mittals@codeaurora.org>
parent e358f82a
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -1916,17 +1916,7 @@ static struct amba_driver etm_driver = {
	.id_table	= etm_ids,
};

int __init etm_init(void)
{
	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_amba_driver(etm_driver);

MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("CoreSight Program Flow Trace driver");