From: Axel Lin <[email protected]>

This patch converts the drivers in drivers/input/* to use
module_serio_driver() macro which makes the code smaller and
a bit simpler.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
[[email protected]: Imported into input-wacom repository (65ac9f7)]
Signed-off-by: Jason Gerecke <[email protected]>
[[email protected]: backported from input-wacom 8cadbac]
Signed-off-by: Jason Gerecke <[email protected]>
---
 3.7/wacom_w8001.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/3.7/wacom_w8001.c b/3.7/wacom_w8001.c
index d57340c..9a83be6 100644
--- a/3.7/wacom_w8001.c
+++ b/3.7/wacom_w8001.c
@@ -594,15 +594,4 @@ static struct serio_driver w8001_drv = {
        .disconnect     = w8001_disconnect,
 };
 
-static int __init w8001_init(void)
-{
-       return serio_register_driver(&w8001_drv);
-}
-
-static void __exit w8001_exit(void)
-{
-       serio_unregister_driver(&w8001_drv);
-}
-
-module_init(w8001_init);
-module_exit(w8001_exit);
+module_serio_driver(w8001_drv);
-- 
2.7.1


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to