mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
net/phy: Use module_spi_driver in spi_ks8995.c
module_spi_driver() removes some boilerplate and makes the code simpler. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
da6e378ba9
commit
1a9561a3bd
1 changed files with 1 additions and 13 deletions
|
@ -354,19 +354,7 @@ static struct spi_driver ks8995_driver = {
|
|||
.remove = ks8995_remove,
|
||||
};
|
||||
|
||||
static int __init ks8995_init(void)
|
||||
{
|
||||
pr_info(DRV_DESC " version " DRV_VERSION "\n");
|
||||
|
||||
return spi_register_driver(&ks8995_driver);
|
||||
}
|
||||
module_init(ks8995_init);
|
||||
|
||||
static void __exit ks8995_exit(void)
|
||||
{
|
||||
spi_unregister_driver(&ks8995_driver);
|
||||
}
|
||||
module_exit(ks8995_exit);
|
||||
module_spi_driver(ks8995_driver);
|
||||
|
||||
MODULE_DESCRIPTION(DRV_DESC);
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
|
|
Loading…
Reference in a new issue