Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45210
b: refs/heads/master
c: 60903f2
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Jan 4, 2007
1 parent 3df2f88 commit 2c39bfa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 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: ee74baa7d83e9e0c2fdaff8122ee9cefd06cddc5
refs/heads/master: 60903f2c6616939afd0335b49697beeb7219657e
11 changes: 0 additions & 11 deletions trunk/drivers/net/Space.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,22 +349,11 @@ static void __init trif_probe2(int unit)
#endif


/*
* The loopback device is global so it can be directly referenced
* by the network code. Also, it must be first on device list.
*/
extern int loopback_init(void);

/* Statically configured drivers -- order matters here. */
static int __init net_olddevs_init(void)
{
int num;

if (loopback_init()) {
printk(KERN_ERR "Network loopback device setup failed\n");
}


#ifdef CONFIG_SBNI
for (num = 0; num < 8; ++num)
sbni_probe(num);
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/net/loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 2c39bfa

Please sign in to comment.