[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1d95eda3b0cc95932ee74bb1d027d5ec21efbadc.1468852798.git.vilhelm.gray@gmail.com>
Date: Mon, 18 Jul 2016 10:46:42 -0400
From: William Breathitt Gray <vilhelm.gray@...il.com>
To: mchehab@....samsung.com
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
William Breathitt Gray <vilhelm.gray@...il.com>,
Hans Verkuil <hverkuil@...all.nl>
Subject: [PATCH 5/6] radio: aztech: Utilize the module_isa_driver macro
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@...all.nl>
Signed-off-by: William Breathitt Gray <vilhelm.gray@...il.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
Powered by blists - more mailing lists