aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2009-08-20 07:14:06 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-08-28 00:24:11 -0400
commit948c28fe3001f2c9d852dff2a0b2c69fe7cec91b (patch)
tree2ba23700a4fc44737175e9970e1554a747bf50e6
parent80d3e8abb73dad3983fef2597b52cab8fbcd876b (diff)
hvc_console: Add __init and __exit to hvc_vio
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>
-rw-r--r--drivers/char/hvc_vio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/hvc_vio.c b/drivers/char/hvc_vio.c
index c72b994652ac..10be343d6ae7 100644
--- a/drivers/char/hvc_vio.c
+++ b/drivers/char/hvc_vio.c
@@ -120,7 +120,7 @@ static struct vio_driver hvc_vio_driver = {
120 } 120 }
121}; 121};
122 122
123static int hvc_vio_init(void) 123static int __init hvc_vio_init(void)
124{ 124{
125 int rc; 125 int rc;
126 126
@@ -134,7 +134,7 @@ static int hvc_vio_init(void)
134} 134}
135module_init(hvc_vio_init); /* after drivers/char/hvc_console.c */ 135module_init(hvc_vio_init); /* after drivers/char/hvc_console.c */
136 136
137static void hvc_vio_exit(void) 137static void __exit hvc_vio_exit(void)
138{ 138{
139 vio_unregister_driver(&hvc_vio_driver); 139 vio_unregister_driver(&hvc_vio_driver);
140} 140}