mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
tokenring: delete all remaining driver support
This represents the mass deletion of the of the tokenring support. It gets rid of: - the net/tr.c which the drivers depended on - the drivers/net component - the Kbuild infrastructure around it - any tokenring related CONFIG_ settings in any defconfigs - the tokenring headers in the include/linux dir - the firmware associated with the tokenring drivers. - any associated token ring documentation. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
parent
211ed86510
commit
ee446fd5e6
43 changed files with 0 additions and 25869 deletions
|
@ -29,7 +29,6 @@
|
|||
*/
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/etherdevice.h>
|
||||
#include <linux/trdevice.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/netlink.h>
|
||||
|
@ -284,46 +283,6 @@ static void __init ethif_probe2(int unit)
|
|||
probe_list2(unit, parport_probes, base_addr == 0));
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TR
|
||||
/* Token-ring device probe */
|
||||
extern int ibmtr_probe_card(struct net_device *);
|
||||
extern struct net_device *smctr_probe(int unit);
|
||||
|
||||
static struct devprobe2 tr_probes2[] __initdata = {
|
||||
#ifdef CONFIG_SMCTR
|
||||
{smctr_probe, 0},
|
||||
#endif
|
||||
{NULL, 0},
|
||||
};
|
||||
|
||||
static __init int trif_probe(int unit)
|
||||
{
|
||||
int err = -ENODEV;
|
||||
#ifdef CONFIG_IBMTR
|
||||
struct net_device *dev = alloc_trdev(0);
|
||||
if (!dev)
|
||||
return -ENOMEM;
|
||||
|
||||
sprintf(dev->name, "tr%d", unit);
|
||||
netdev_boot_setup_check(dev);
|
||||
err = ibmtr_probe_card(dev);
|
||||
if (err)
|
||||
free_netdev(dev);
|
||||
#endif
|
||||
return err;
|
||||
}
|
||||
|
||||
static void __init trif_probe2(int unit)
|
||||
{
|
||||
unsigned long base_addr = netdev_boot_base("tr", unit);
|
||||
|
||||
if (base_addr == 1)
|
||||
return;
|
||||
probe_list2(unit, tr_probes2, base_addr == 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/* Statically configured drivers -- order matters here. */
|
||||
static int __init net_olddevs_init(void)
|
||||
{
|
||||
|
@ -332,11 +291,6 @@ static int __init net_olddevs_init(void)
|
|||
#ifdef CONFIG_SBNI
|
||||
for (num = 0; num < 8; ++num)
|
||||
sbni_probe(num);
|
||||
#endif
|
||||
#ifdef CONFIG_TR
|
||||
for (num = 0; num < 8; ++num)
|
||||
if (!trif_probe(num))
|
||||
trif_probe2(num);
|
||||
#endif
|
||||
for (num = 0; num < 8; ++num)
|
||||
ethif_probe2(num);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue