* [PATCH -next] x86: smartconnect: use module_acpi_driver to simplify the code
@ 2013-07-17 1:52 Wei Yongjun
2013-09-03 12:15 ` Matthew Garrett
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2013-07-17 1:52 UTC (permalink / raw)
To: matthew.garrett; +Cc: yongjun_wei, platform-driver-x86
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
module_acpi_driver() makes the code simpler by eliminating
boilerplate code.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
drivers/platform/x86/intel-smartconnect.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/drivers/platform/x86/intel-smartconnect.c b/drivers/platform/x86/intel-smartconnect.c
index f74e93d..52259dc 100644
--- a/drivers/platform/x86/intel-smartconnect.c
+++ b/drivers/platform/x86/intel-smartconnect.c
@@ -74,17 +74,6 @@ static struct acpi_driver smartconnect_driver = {
},
};
-static int smartconnect_init(void)
-{
- return acpi_bus_register_driver(&smartconnect_driver);
-}
-
-static void smartconnect_exit(void)
-{
- acpi_bus_unregister_driver(&smartconnect_driver);
-}
-
-module_init(smartconnect_init);
-module_exit(smartconnect_exit);
+module_acpi_driver(smartconnect_driver);
MODULE_DEVICE_TABLE(acpi, smartconnect_ids);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] x86: smartconnect: use module_acpi_driver to simplify the code
2013-07-17 1:52 [PATCH -next] x86: smartconnect: use module_acpi_driver to simplify the code Wei Yongjun
@ 2013-09-03 12:15 ` Matthew Garrett
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Garrett @ 2013-09-03 12:15 UTC (permalink / raw)
To: Wei Yongjun
Cc: yongjun_wei@trendmicro.com.cn,
platform-driver-x86@vger.kernel.org
On Wed, 2013-07-17 at 09:52 +0800, Wei Yongjun wrote:
>
> module_acpi_driver() makes the code simpler by eliminating
> boilerplate code.
Applied, thanks.
--
Matthew Garrett <matthew.garrett@nebula.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-03 12:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-17 1:52 [PATCH -next] x86: smartconnect: use module_acpi_driver to simplify the code Wei Yongjun
2013-09-03 12:15 ` Matthew Garrett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox