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

Commit d071c043 authored by Wei Yongjun's avatar Wei Yongjun Committed by John W. Linville
Browse files

cw1200: use module_spi_driver to simplify the code



module_spi_driver() makes the code simpler by eliminating
boilerplate code.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c0dc79d6
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -468,17 +468,4 @@ static struct spi_driver spi_driver = {
	},
};

/* Init Module function -> Called by insmod */
static int __init cw1200_spi_init(void)
{
	return spi_register_driver(&spi_driver);
}

/* Called at Driver Unloading */
static void __exit cw1200_spi_exit(void)
{
	spi_unregister_driver(&spi_driver);
}

module_init(cw1200_spi_init);
module_exit(cw1200_spi_exit);
module_spi_driver(spi_driver);