[PARPORT] plip


Philip Blundell (Philip.Blundell@pobox.com)
Sun, 16 Jan 2000 21:42:16 +0000


Changing PLIP's irq using ifconfig was marked as deprecated in 2.2, by the
looks of things. I think it's time to get rid of it.

p.

Index: plip.c
===================================================================
RCS file: /cvsroot/pub/kernel/armlinux/drivers/net/plip.c,v
retrieving revision 1.3
diff -u -r1.3 plip.c
--- plip.c 1999/09/17 13:39:31 1.3
+++ plip.c 2000/01/16 21:41:35
@@ -318,7 +318,6 @@
         dev->open = plip_open;
         dev->stop = plip_close;
         dev->get_stats = plip_get_stats;
- dev->set_config = plip_config;
         dev->do_ioctl = plip_ioctl;
         dev->header_cache_update = NULL;
         dev->tx_queue_len = 10;
@@ -1226,27 +1225,6 @@
         struct net_device_stats *r = &nl->enet_stats;
 
         return r;
-}
-
-static int
-plip_config(struct net_device *dev, struct ifmap *map)
-{
- struct net_local *nl = (struct net_local *) dev->priv;
- struct pardevice *pardev = nl->pardev;
-
- if (dev->flags & IFF_UP)
- return -EBUSY;
-
- printk(KERN_WARNING "plip: Warning, changing irq with ifconfig will be obsoleted.\n");
- printk(KERN_WARNING "plip: Next time, please set with /proc/parport/*/irq instead.\n");
-
- if (map->irq != (unsigned char)-1) {
- pardev->port->irq = dev->irq = map->irq;
- /* Dummy request */
- request_irq(dev->irq, plip_interrupt, SA_INTERRUPT,
- pardev->name, NULL);
- }
- return 0;
 }
 
 static int

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Sun 16 Jan 2000 - 16:54:39 EST