]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
hvc_console: Add __init and __exit to hvc_vio
authorPeter Huewe <peterhuewe@gmx.de>
Thu, 20 Aug 2009 11:14:06 +0000 (11:14 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 28 Aug 2009 04:24:11 +0000 (14:24 +1000)
Trivial patch which adds the __init/__exit macros to the module_init/
module_exit functions of char/hvc_vio.c

Please have a look at the small patch and either pull it through
your tree, or please ack' it so Jiri can pull it through the trivial tree.

linux version 2.6.31-rc6 - linus git tree, Do 20. Aug 22:26:06 CEST 2009

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/char/hvc_vio.c

index c72b994652ace78b816b4e3041e86825c01ff348..10be343d6ae75127c1aa980c1667fe518bbbb0ab 100644 (file)
@@ -120,7 +120,7 @@ static struct vio_driver hvc_vio_driver = {
        }
 };
 
-static int hvc_vio_init(void)
+static int __init hvc_vio_init(void)
 {
        int rc;
 
@@ -134,7 +134,7 @@ static int hvc_vio_init(void)
 }
 module_init(hvc_vio_init); /* after drivers/char/hvc_console.c */
 
-static void hvc_vio_exit(void)
+static void __exit hvc_vio_exit(void)
 {
        vio_unregister_driver(&hvc_vio_driver);
 }