mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 17:30:53 +07:00
Bluetooth: btsdio: 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. Signed-off-by: Sean Wang <sean.wang@mediatek.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
a6094a468f
commit
afa8d3160a
@ -376,20 +376,7 @@ static struct sdio_driver btsdio_driver = {
|
||||
.id_table = btsdio_table,
|
||||
};
|
||||
|
||||
static int __init btsdio_init(void)
|
||||
{
|
||||
BT_INFO("Generic Bluetooth SDIO driver ver %s", VERSION);
|
||||
|
||||
return sdio_register_driver(&btsdio_driver);
|
||||
}
|
||||
|
||||
static void __exit btsdio_exit(void)
|
||||
{
|
||||
sdio_unregister_driver(&btsdio_driver);
|
||||
}
|
||||
|
||||
module_init(btsdio_init);
|
||||
module_exit(btsdio_exit);
|
||||
module_sdio_driver(btsdio_driver);
|
||||
|
||||
MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
|
||||
MODULE_DESCRIPTION("Generic Bluetooth SDIO driver ver " VERSION);
|
||||
|
Loading…
Reference in New Issue
Block a user