Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95209
b: refs/heads/master
c: 83e422b
h: refs/heads/master
i:
  95207: 3f8ef04
v: v3
  • Loading branch information
Jon Schindler authored and Linus Torvalds committed Apr 30, 2008
1 parent c834c87 commit c06aa5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 11fb09bfabd699a94555b69d6e6c4fa6c3febde8
refs/heads/master: 83e422b7649267067975cbb17a878b5f9dfd2de3
10 changes: 6 additions & 4 deletions trunk/drivers/char/ip2/ip2main.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,15 @@ have_requested_irq( char irq )
/* the driver initialisation function and returns what it returns. */
/******************************************************************************/
#ifdef MODULE
int
init_module(void)
static int __init
ip2_init_module(void)
{
#ifdef IP2DEBUG_INIT
printk (KERN_DEBUG "Loading module ...\n" );
#endif
return 0;
}
module_init(ip2_init_module);
#endif /* MODULE */

/******************************************************************************/
Expand All @@ -381,8 +382,8 @@ init_module(void)
/* driver should be returned since it may be unloaded from memory. */
/******************************************************************************/
#ifdef MODULE
void
cleanup_module(void)
void __exit
ip2_cleanup_module(void)
{
int err;
int i;
Expand Down Expand Up @@ -452,6 +453,7 @@ cleanup_module(void)
printk (KERN_DEBUG "IP2 Unloaded\n" );
#endif
}
module_exit(ip2_cleanup_module);
#endif /* MODULE */

static const struct tty_operations ip2_ops = {
Expand Down

0 comments on commit c06aa5c

Please sign in to comment.