diff options
author | alex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com> | 2012-08-26 01:10:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-30 13:23:15 -0400 |
commit | 395a57385508f7b8b445b6911bfa35bc0ccaa0ff (patch) | |
tree | d21431c33ba0c438feb9cd835552d077c00b736a /drivers/ieee802154 | |
parent | 9eca2eb9942ee0b6f2bc76485e16e334aee2c0bf (diff) |
drivers/ieee802154/at86rf230: replace the code under _init and _exit by macro
The code under _init and _exit functions is similar to the code of
module_spi_driver macro, which is a wrapper to the module_driver macro,
so use it instead.
Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Cc: Devendra Naga <develkernel412222@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ieee802154')
-rw-r--r-- | drivers/ieee802154/at86rf230.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/ieee802154/at86rf230.c b/drivers/ieee802154/at86rf230.c index 5d309408395d..ba753d87a32f 100644 --- a/drivers/ieee802154/at86rf230.c +++ b/drivers/ieee802154/at86rf230.c | |||
@@ -952,17 +952,7 @@ static struct spi_driver at86rf230_driver = { | |||
952 | .resume = at86rf230_resume, | 952 | .resume = at86rf230_resume, |
953 | }; | 953 | }; |
954 | 954 | ||
955 | static int __init at86rf230_init(void) | 955 | module_spi_driver(at86rf230_driver); |
956 | { | ||
957 | return spi_register_driver(&at86rf230_driver); | ||
958 | } | ||
959 | module_init(at86rf230_init); | ||
960 | |||
961 | static void __exit at86rf230_exit(void) | ||
962 | { | ||
963 | spi_unregister_driver(&at86rf230_driver); | ||
964 | } | ||
965 | module_exit(at86rf230_exit); | ||
966 | 956 | ||
967 | MODULE_DESCRIPTION("AT86RF230 Transceiver Driver"); | 957 | MODULE_DESCRIPTION("AT86RF230 Transceiver Driver"); |
968 | MODULE_LICENSE("GPL v2"); | 958 | MODULE_LICENSE("GPL v2"); |