diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-27 03:51:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-28 08:24:29 +0200 |
commit | 1a9561a3bd0faaffa14dc20430805a46e311d00e (patch) | |
tree | 9c42e48f54ce31cff050cf281d626c2b7f7ebabe /drivers/net/phy/spi_ks8995.c | |
parent | netpoll: remove return value from netpoll_rx_disable() (diff) | |
download | linux-1a9561a3bd0faaffa14dc20430805a46e311d00e.tar.xz linux-1a9561a3bd0faaffa14dc20430805a46e311d00e.zip |
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>
Diffstat (limited to 'drivers/net/phy/spi_ks8995.c')
-rw-r--r-- | drivers/net/phy/spi_ks8995.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c index d11c93e69e03..f3bea1346021 100644 --- a/drivers/net/phy/spi_ks8995.c +++ b/drivers/net/phy/spi_ks8995.c @@ -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); |