提交 a6094a46 编写于 作者: S Sean Wang 提交者: Marcel Holtmann

Bluetooth: mediatek: Use module_sdio_driver helper

Macro module_sdio_driver is used for drivers whose init and exit paths
only register and unregister to SDIO API. So remove boilerplate code to
make code simpler by using module_sdio_driver.
Suggested-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NSean Wang <sean.wang@mediatek.com>
Acked-by: NUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 db0a3908
......@@ -956,20 +956,7 @@ static struct sdio_driver btmtksdio_driver = {
.id_table = btmtksdio_table,
};
static int __init btmtksdio_init(void)
{
BT_INFO("MediaTek Bluetooth SDIO driver ver %s", VERSION);
return sdio_register_driver(&btmtksdio_driver);
}
static void __exit btmtksdio_exit(void)
{
sdio_unregister_driver(&btmtksdio_driver);
}
module_init(btmtksdio_init);
module_exit(btmtksdio_exit);
module_sdio_driver(btmtksdio_driver);
MODULE_AUTHOR("Sean Wang <sean.wang@mediatek.com>");
MODULE_DESCRIPTION("MediaTek Bluetooth SDIO driver ver " VERSION);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册