* [PATCH 1/1] net/phy: Use module_spi_driver in spi_ks8995.c
@ 2013-05-27 11:51 Sachin Kamat
2013-05-28 6:24 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2013-05-27 11:51 UTC (permalink / raw)
To: netdev; +Cc: davem, sachin.kamat, juhosg
module_spi_driver() removes some boilerplate and makes the code
simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/net/phy/spi_ks8995.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c
index d11c93e..f3bea13 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);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] net/phy: Use module_spi_driver in spi_ks8995.c
2013-05-27 11:51 [PATCH 1/1] net/phy: Use module_spi_driver in spi_ks8995.c Sachin Kamat
@ 2013-05-28 6:24 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-05-28 6:24 UTC (permalink / raw)
To: sachin.kamat; +Cc: netdev, juhosg
From: Sachin Kamat <sachin.kamat@linaro.org>
Date: Mon, 27 May 2013 17:21:39 +0530
> module_spi_driver() removes some boilerplate and makes the code
> simpler.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-28 6:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-27 11:51 [PATCH 1/1] net/phy: Use module_spi_driver in spi_ks8995.c Sachin Kamat
2013-05-28 6:24 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).