Loading drivers/net/3c59x.c +2 −2 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ static int vortex_debug = 1; #include <linux/eisa.h> #include <linux/bitops.h> #include <linux/jiffies.h> #include <asm/irq.h> /* For NR_IRQS only. */ #include <asm/irq.h> /* For nr_irqs only. */ #include <asm/io.h> #include <asm/uaccess.h> Loading Loading @@ -1221,7 +1221,7 @@ static int __devinit vortex_probe1(struct device *gendev, if (print_info) printk(", IRQ %d\n", dev->irq); /* Tell them about an invalid IRQ. */ if (dev->irq <= 0 || dev->irq >= NR_IRQS) if (dev->irq <= 0 || dev->irq >= nr_irqs) printk(KERN_WARNING " *** Warning: IRQ %d is unlikely to work! ***\n", dev->irq); Loading drivers/net/hamradio/baycom_ser_fdx.c +2 −2 Original line number Diff line number Diff line Loading @@ -416,10 +416,10 @@ static int ser12_open(struct net_device *dev) if (!dev || !bc) return -ENXIO; if (!dev->base_addr || dev->base_addr > 0xffff-SER12_EXTENT || dev->irq < 2 || dev->irq > NR_IRQS) { dev->irq < 2 || dev->irq > nr_irqs) { printk(KERN_INFO "baycom_ser_fdx: invalid portnumber (max %u) " "or irq (2 <= irq <= %d)\n", 0xffff-SER12_EXTENT, NR_IRQS); 0xffff-SER12_EXTENT, nr_irqs); return -ENXIO; } if (bc->baud < 300 || bc->baud > 4800) { Loading drivers/net/hamradio/scc.c +3 −3 Original line number Diff line number Diff line Loading @@ -1465,7 +1465,7 @@ static void z8530_init(void) printk(KERN_INFO "Init Z8530 driver: %u channels, IRQ", Nchips*2); flag=" "; for (k = 0; k < NR_IRQS; k++) for (k = 0; k < nr_irqs; k++) if (Ivec[k].used) { printk("%s%d", flag, k); Loading Loading @@ -1728,7 +1728,7 @@ static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) if (hwcfg.irq == 2) hwcfg.irq = 9; if (hwcfg.irq < 0 || hwcfg.irq >= NR_IRQS) if (hwcfg.irq < 0 || hwcfg.irq >= nr_irqs) return -EINVAL; if (!Ivec[hwcfg.irq].used && hwcfg.irq) Loading Loading @@ -2148,7 +2148,7 @@ static void __exit scc_cleanup_driver(void) } /* To unload the port must be closed so no real IRQ pending */ for (k=0; k < NR_IRQS ; k++) for (k = 0; k < nr_irqs ; k++) if (Ivec[k].used) free_irq(k, NULL); local_irq_enable(); Loading drivers/net/wan/sbni.c +1 −1 Original line number Diff line number Diff line Loading @@ -318,7 +318,7 @@ sbni_pci_probe( struct net_device *dev ) continue; } if( pci_irq_line <= 0 || pci_irq_line >= NR_IRQS ) if (pci_irq_line <= 0 || pci_irq_line >= nr_irqs) printk( KERN_WARNING " WARNING: The PCI BIOS assigned " "this PCI card to IRQ %d, which is unlikely " "to work!.\n" Loading Loading
drivers/net/3c59x.c +2 −2 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ static int vortex_debug = 1; #include <linux/eisa.h> #include <linux/bitops.h> #include <linux/jiffies.h> #include <asm/irq.h> /* For NR_IRQS only. */ #include <asm/irq.h> /* For nr_irqs only. */ #include <asm/io.h> #include <asm/uaccess.h> Loading Loading @@ -1221,7 +1221,7 @@ static int __devinit vortex_probe1(struct device *gendev, if (print_info) printk(", IRQ %d\n", dev->irq); /* Tell them about an invalid IRQ. */ if (dev->irq <= 0 || dev->irq >= NR_IRQS) if (dev->irq <= 0 || dev->irq >= nr_irqs) printk(KERN_WARNING " *** Warning: IRQ %d is unlikely to work! ***\n", dev->irq); Loading
drivers/net/hamradio/baycom_ser_fdx.c +2 −2 Original line number Diff line number Diff line Loading @@ -416,10 +416,10 @@ static int ser12_open(struct net_device *dev) if (!dev || !bc) return -ENXIO; if (!dev->base_addr || dev->base_addr > 0xffff-SER12_EXTENT || dev->irq < 2 || dev->irq > NR_IRQS) { dev->irq < 2 || dev->irq > nr_irqs) { printk(KERN_INFO "baycom_ser_fdx: invalid portnumber (max %u) " "or irq (2 <= irq <= %d)\n", 0xffff-SER12_EXTENT, NR_IRQS); 0xffff-SER12_EXTENT, nr_irqs); return -ENXIO; } if (bc->baud < 300 || bc->baud > 4800) { Loading
drivers/net/hamradio/scc.c +3 −3 Original line number Diff line number Diff line Loading @@ -1465,7 +1465,7 @@ static void z8530_init(void) printk(KERN_INFO "Init Z8530 driver: %u channels, IRQ", Nchips*2); flag=" "; for (k = 0; k < NR_IRQS; k++) for (k = 0; k < nr_irqs; k++) if (Ivec[k].used) { printk("%s%d", flag, k); Loading Loading @@ -1728,7 +1728,7 @@ static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) if (hwcfg.irq == 2) hwcfg.irq = 9; if (hwcfg.irq < 0 || hwcfg.irq >= NR_IRQS) if (hwcfg.irq < 0 || hwcfg.irq >= nr_irqs) return -EINVAL; if (!Ivec[hwcfg.irq].used && hwcfg.irq) Loading Loading @@ -2148,7 +2148,7 @@ static void __exit scc_cleanup_driver(void) } /* To unload the port must be closed so no real IRQ pending */ for (k=0; k < NR_IRQS ; k++) for (k = 0; k < nr_irqs ; k++) if (Ivec[k].used) free_irq(k, NULL); local_irq_enable(); Loading
drivers/net/wan/sbni.c +1 −1 Original line number Diff line number Diff line Loading @@ -318,7 +318,7 @@ sbni_pci_probe( struct net_device *dev ) continue; } if( pci_irq_line <= 0 || pci_irq_line >= NR_IRQS ) if (pci_irq_line <= 0 || pci_irq_line >= nr_irqs) printk( KERN_WARNING " WARNING: The PCI BIOS assigned " "this PCI card to IRQ %d, which is unlikely " "to work!.\n" Loading