提交 98f85d30 编写于 作者: J Jiri Slaby 提交者: Linus Torvalds

Char: icom, mark __init as __devinit

Two functions are called from __devinit context, but they are marked as
__init. Fix this.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 9b7f3755
...@@ -164,7 +164,7 @@ static void free_port_memory(struct icom_port *icom_port) ...@@ -164,7 +164,7 @@ static void free_port_memory(struct icom_port *icom_port)
} }
} }
static int __init get_port_memory(struct icom_port *icom_port) static int __devinit get_port_memory(struct icom_port *icom_port)
{ {
int index; int index;
unsigned long stgAddr; unsigned long stgAddr;
...@@ -1380,7 +1380,7 @@ static void icom_port_active(struct icom_port *icom_port, struct icom_adapter *i ...@@ -1380,7 +1380,7 @@ static void icom_port_active(struct icom_port *icom_port, struct icom_adapter *i
0x8024 + 2 - 2 * (icom_port->port - 2); 0x8024 + 2 - 2 * (icom_port->port - 2);
} }
} }
static int __init icom_load_ports(struct icom_adapter *icom_adapter) static int __devinit icom_load_ports(struct icom_adapter *icom_adapter)
{ {
struct icom_port *icom_port; struct icom_port *icom_port;
int port_num; int port_num;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册