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

Commit d5a49178 authored by Peter Huewe's avatar Peter Huewe Committed by Luciano Coelho
Browse files

net/wireless/ti/wlcore/spi: Use module_spi_driver to register driver



Removing some boilerplate by using module_spi_driver instead of calling
register and unregister in the otherwise empty init/exit functions

Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent 5cbba2d4
Loading
Loading
Loading
Loading
+1 −13
Original line number Original line Diff line number Diff line
@@ -434,19 +434,7 @@ static struct spi_driver wl1271_spi_driver = {
	.remove		= wl1271_remove,
	.remove		= wl1271_remove,
};
};


static int __init wl1271_init(void)
module_spi_driver(wl1271_spi_driver);
{
	return spi_register_driver(&wl1271_spi_driver);
}

static void __exit wl1271_exit(void)
{
	spi_unregister_driver(&wl1271_spi_driver);
}

module_init(wl1271_init);
module_exit(wl1271_exit);

MODULE_LICENSE("GPL");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>");
MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>");
MODULE_AUTHOR("Juuso Oikarinen <juuso.oikarinen@nokia.com>");
MODULE_AUTHOR("Juuso Oikarinen <juuso.oikarinen@nokia.com>");