X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fmeth.c;h=2c0f2aaadba051688047efe337405cb1720204ba;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=619a67a8c2112eed7018ccae5003eccd9cb46e45;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/net/meth.c b/drivers/net/meth.c index 619a67a8c..2c0f2aaad 100644 --- a/drivers/net/meth.c +++ b/drivers/net/meth.c @@ -367,31 +367,6 @@ static int meth_release(struct net_device *dev) return 0; } -/* - * Configuration changes (passed on by ifconfig) - */ -static int meth_config(struct net_device *dev, struct ifmap *map) -{ - if (dev->flags & IFF_UP) /* can't act on a running interface */ - return -EBUSY; - - /* Don't allow changing the I/O address */ - if (map->base_addr != dev->base_addr) { - printk(KERN_WARNING "meth: Can't change I/O address\n"); - return -EOPNOTSUPP; - } - - /* Don't allow changing the IRQ */ - if (map->irq != dev->irq) { - printk(KERN_WARNING "meth: Can't change IRQ\n"); - return -EOPNOTSUPP; - } - DPRINTK("Configured\n"); - - /* ignore other fields */ - return 0; -} - /* * Receive a packet: retrieve, encapsulate and pass over to upper levels */ @@ -813,7 +788,6 @@ static struct net_device *meth_init(void) dev->open = meth_open; dev->stop = meth_release; - dev->set_config = meth_config; dev->hard_start_xmit = meth_tx; dev->do_ioctl = meth_ioctl; dev->get_stats = meth_stats;