提交 948c28fe 编写于 作者: P Peter Huewe 提交者: Benjamin Herrenschmidt

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: NPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 80d3e8ab
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册