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

Commit a04582f4 authored by Brian Norris's avatar Brian Norris Committed by Dundi Raviteja
Browse files

UPSTREAM: ath10k: snoc: use module_platform_driver() macro



ath10k_snoc_init()/ath10k_snoc_exit() don't add much value;
module_platform_driver() can remove the boilerplate.

Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Git-commit: 0644fef9
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git


Change-Id: If21c61b26ae6a2029ce7cac9ad5b6cb42b373351
Signed-off-by: default avatarDundi Raviteja <dundi@codeaurora.org>
parent d0c0a3d8
Loading
Loading
Loading
Loading
+1 −19
Original line number Diff line number Diff line
@@ -1386,25 +1386,7 @@ static struct platform_driver ath10k_snoc_driver = {
			.of_match_table = ath10k_snoc_dt_match,
		},
};

static int __init ath10k_snoc_init(void)
{
	int ret;

	ret = platform_driver_register(&ath10k_snoc_driver);
	if (ret)
		pr_err("failed to register ath10k snoc driver: %d\n",
		       ret);

	return ret;
}
module_init(ath10k_snoc_init);

static void __exit ath10k_snoc_exit(void)
{
	platform_driver_unregister(&ath10k_snoc_driver);
}
module_exit(ath10k_snoc_exit);
module_platform_driver(ath10k_snoc_driver);

MODULE_AUTHOR("Qualcomm");
MODULE_LICENSE("Dual BSD/GPL");