Skip to content

Commit

Permalink
Char: icom, mark __init as __devinit
Browse files Browse the repository at this point in the history
Two functions are called from __devinit context, but they are marked as
__init. Fix this.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
jirislaby authored and Linus Torvalds committed Apr 24, 2007
1 parent 9b7f375 commit 98f85d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/serial/icom.c
Expand Up @@ -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;
unsigned long stgAddr;
Expand Down Expand Up @@ -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);
}
}
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;
int port_num;
Expand Down

0 comments on commit 98f85d3

Please sign in to comment.