diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-01-02 09:35:48 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-01-04 03:38:10 +0100 |
commit | 60903f2c6616939afd0335b49697beeb7219657e (patch) | |
tree | 99825b33f85dbb00f649f9c6e863861a8368ef0e /drivers/net/loopback.c | |
parent | [PKTGEN]: Convert to kthread API. (diff) | |
download | linux-60903f2c6616939afd0335b49697beeb7219657e.tar.xz linux-60903f2c6616939afd0335b49697beeb7219657e.zip |
[NET] drivers/net/loopback.c: convert to module_init()
This patch converts drivers/net/loopback.c to using module_init().
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/loopback.c')
-rw-r--r-- | drivers/net/loopback.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index 82c10dec1b5a..2b739fd584f1 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c @@ -229,9 +229,11 @@ struct net_device loopback_dev = { }; /* Setup and register the loopback device. */ -int __init loopback_init(void) +static int __init loopback_init(void) { return register_netdev(&loopback_dev); }; +module_init(loopback_init); + EXPORT_SYMBOL(loopback_dev); |