Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1445567
| From | William Breathitt Gray <vilhelm.gray@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 5/6] radio: aztech: Utilize the module_isa_driver macro |
| Date | 2016-07-18 16:50 +0200 |
| Message-ID | <rWi1Q-7tY-9@gated-at.bofh.it> (permalink) |
| References | <rWi1P-7tY-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This driver does not do anything special in module init/exit. This patch
eliminates the module init/exit boilerplate code by utilizing the
module_isa_driver macro.
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
---
drivers/media/radio/radio-aztech.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/media/radio/radio-aztech.c b/drivers/media/radio/radio-aztech.c
index 705dd6f..7b39655 100644
--- a/drivers/media/radio/radio-aztech.c
+++ b/drivers/media/radio/radio-aztech.c
@@ -147,15 +147,4 @@ static struct radio_isa_driver aztech_driver = {
.max_volume = 3,
};
-static int __init aztech_init(void)
-{
- return isa_register_driver(&aztech_driver.driver, AZTECH_MAX);
-}
-
-static void __exit aztech_exit(void)
-{
- isa_unregister_driver(&aztech_driver.driver);
-}
-
-module_init(aztech_init);
-module_exit(aztech_exit);
+module_isa_driver(aztech_driver.driver, AZTECH_MAX);
--
2.7.3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] radio: Utilize the module_isa_driver macro William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-07-18 16:50 +0200
[PATCH 3/6] radio: trust: Utilize the module_isa_driver macro William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-07-18 16:50 +0200
[PATCH 4/6] radio: zoltrix: Utilize the module_isa_driver macro William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-07-18 16:50 +0200
[PATCH 5/6] radio: aztech: Utilize the module_isa_driver macro William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-07-18 16:50 +0200
[PATCH 6/6] radio: aimslab: Utilize the module_isa_driver macro William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-07-18 16:50 +0200
[PATCH 1/6] radio: terratec: Utilize the module_isa_driver macro William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-07-18 16:50 +0200
[PATCH 2/6] radio: rtrack2: Utilize the module_isa_driver macro William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-07-18 16:50 +0200
Re: [PATCH 0/6] radio: Utilize the module_isa_driver macro Hans Verkuil <hverkuil@xs4all.nl> - 2016-07-20 12:40 +0200
Re: [PATCH 0/6] radio: Utilize the module_isa_driver macro William Breathitt Gray <vilhelm.gray@gmail.com> - 2016-07-20 14:50 +0200
csiph-web