net 8390p: fix interface usage
authorIngo Molnar <mingo@elte.hu>
Tue, 22 Jul 2008 07:23:34 +0000 (09:23 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 22 Jul 2008 21:50:44 +0000 (17:50 -0400)
various drivers were using the wrong APIs:

 drivers/built-in.o: In function `hp_probe1':
 hp.c:(.init.text+0xa280): undefined reference to `NS8390_init'

fixed via:

cd drivers/net/; sed -i 's/NS8390_/NS8390p_/g' \
  $(grep -l NS8390_ $(grep 8390p.o Makefile | cut -d' ' -f3 | \
      sed 's/.o$/.c/g'))

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/hp-plus.c
drivers/net/hp.c
drivers/net/ne.c
drivers/net/ne2.c

index c2c4f49..8239939 100644 (file)
@@ -262,7 +262,7 @@ static int __init hpp_probe1(struct net_device *dev, int ioaddr)
        }
 
        outw(Perf_Page, ioaddr + HP_PAGING);
        }
 
        outw(Perf_Page, ioaddr + HP_PAGING);
-       NS8390_init(dev, 0);
+       NS8390p_init(dev, 0);
        /* Leave the 8390 and HP chip reset. */
        outw(inw(ioaddr + HPP_OPTION) & ~EnableIRQ, ioaddr + HPP_OPTION);
 
        /* Leave the 8390 and HP chip reset. */
        outw(inw(ioaddr + HPP_OPTION) & ~EnableIRQ, ioaddr + HPP_OPTION);
 
index 8281209..0a8c649 100644 (file)
@@ -389,7 +389,7 @@ static void __init
 hp_init_card(struct net_device *dev)
 {
        int irq = dev->irq;
 hp_init_card(struct net_device *dev)
 {
        int irq = dev->irq;
-       NS8390_init(dev, 0);
+       NS8390p_init(dev, 0);
        outb_p(irqmap[irq&0x0f] | HP_RUN,
                   dev->base_addr - NIC_OFFSET + HP_CONFIGURE);
        return;
        outb_p(irqmap[irq&0x0f] | HP_RUN,
                   dev->base_addr - NIC_OFFSET + HP_CONFIGURE);
        return;
index 1412697..2fec612 100644 (file)
@@ -355,7 +355,7 @@ static int __init ne_probe1(struct net_device *dev, unsigned long ioaddr)
        }
 
        /* Read the 16 bytes of station address PROM.
        }
 
        /* Read the 16 bytes of station address PROM.
-          We must first initialize registers, similar to NS8390_init(eifdev, 0).
+          We must first initialize registers, similar to NS8390p_init(eifdev, 0).
           We can't reliably read the SAPROM address without this.
           (I learned the hard way!). */
        {
           We can't reliably read the SAPROM address without this.
           (I learned the hard way!). */
        {
index 8f72563..332df75 100644 (file)
@@ -404,7 +404,7 @@ static int __init ne2_probe1(struct net_device *dev, int slot)
 
        /* Read the 16 bytes of station address PROM.
           We must first initialize registers, similar to
 
        /* Read the 16 bytes of station address PROM.
           We must first initialize registers, similar to
-          NS8390_init(eifdev, 0).
+          NS8390p_init(eifdev, 0).
           We can't reliably read the SAPROM address without this.
           (I learned the hard way!). */
        {
           We can't reliably read the SAPROM address without this.
           (I learned the hard way!). */
        {