Commit 040f3e3e authored by David S. Miller's avatar David S. Miller

[NET]: Kill drivers/net/setup.c, it no longer does anything.

parent 26c37681
......@@ -65,7 +65,7 @@ obj-$(CONFIG_MII) += mii.o
obj-$(CONFIG_WINBOND_840) += mii.o
obj-$(CONFIG_SUNDANCE) += sundance.o mii.o
obj-$(CONFIG_HAMACHI) += hamachi.o mii.o
obj-$(CONFIG_NET) += Space.o setup.o net_init.o loopback.o
obj-$(CONFIG_NET) += Space.o net_init.o loopback.o
obj-$(CONFIG_SEEQ8005) += seeq8005.o
obj-$(CONFIG_ETHERTAP) += ethertap.o
obj-$(CONFIG_NET_SB1000) += sb1000.o
......
/*
* New style setup code for the network devices
*/
#include <linux/config.h>
#include <linux/netdevice.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/netlink.h>
/*
* Devices in this list must do new style probing. That is they must
* allocate their own device objects and do their own bus scans.
*/
struct net_probe
{
int (*probe)(void);
int status; /* non-zero if autoprobe has failed */
};
static struct net_probe pci_probes[] __initdata = {
/*
* Early setup devices
*/
{NULL, 0},
};
/*
* Run the updated device probes. These do not need a device passed
* into them.
*/
void __init net_device_init(void)
{
struct net_probe *p = pci_probes;
while (p->probe != NULL)
{
p->status = p->probe();
p++;
}
}
......@@ -2863,10 +2863,6 @@ int unregister_netdevice(struct net_device *dev)
*
*/
extern void net_device_init(void);
extern void ip_auto_config(void);
/*
* This is called single threaded during boot, so no need
* to take the rtnl semaphore.
......@@ -2999,11 +2995,6 @@ static int __init net_dev_init(void)
#ifdef CONFIG_NET_SCHED
pktsched_init();
#endif
/*
* Initialise network devices
*/
net_device_init();
rc = 0;
out:
return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment