Skip to content

Commit

Permalink
drivers/net/apne.c: replace init_module&cleanup_module with module_in…
Browse files Browse the repository at this point in the history
…it&module_exit

Replaced init_module and cleanup_module with static functions and
module_init/module_exit.

Signed-off-by: Jon Schindler <jkschind@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jon Schindler authored and David S. Miller committed Mar 6, 2008
1 parent 7249d4c commit 3cfbb67
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/net/apne.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,15 +569,15 @@ static irqreturn_t apne_interrupt(int irq, void *dev_id)
#ifdef MODULE
static struct net_device *apne_dev;

int __init init_module(void)
static int __init apne_module_init(void)
{
apne_dev = apne_probe(-1);
if (IS_ERR(apne_dev))
return PTR_ERR(apne_dev);
return 0;
}

void __exit cleanup_module(void)
static void __exit apne_module_exit(void)
{
unregister_netdev(apne_dev);

Expand All @@ -591,7 +591,8 @@ void __exit cleanup_module(void)

free_netdev(apne_dev);
}

module_init(apne_module_init);
module_exit(apne_module_exit);
#endif

static int init_pcmcia(void)
Expand Down

0 comments on commit 3cfbb67

Please sign in to comment.