diff options
-rw-r--r-- | drivers/net/7990.c | 2 | ||||
-rw-r--r-- | drivers/net/hplance.c | 14 |
2 files changed, 11 insertions, 5 deletions
diff --git a/drivers/net/7990.c b/drivers/net/7990.c index 7733697f7776..2d5ba076471c 100644 --- a/drivers/net/7990.c +++ b/drivers/net/7990.c | |||
@@ -500,7 +500,7 @@ int lance_open (struct net_device *dev) | |||
500 | int res; | 500 | int res; |
501 | 501 | ||
502 | /* Install the Interrupt handler. Or we could shunt this out to specific drivers? */ | 502 | /* Install the Interrupt handler. Or we could shunt this out to specific drivers? */ |
503 | if (request_irq(lp->irq, lance_interrupt, 0, lp->name, dev)) | 503 | if (request_irq(lp->irq, lance_interrupt, SA_SHIRQ, lp->name, dev)) |
504 | return -EAGAIN; | 504 | return -EAGAIN; |
505 | 505 | ||
506 | res = lance_reset(dev); | 506 | res = lance_reset(dev); |
diff --git a/drivers/net/hplance.c b/drivers/net/hplance.c index 9c643f2a8d54..c991cb82ff22 100644 --- a/drivers/net/hplance.c +++ b/drivers/net/hplance.c | |||
@@ -77,6 +77,7 @@ static int __devinit hplance_init_one(struct dio_dev *d, | |||
77 | { | 77 | { |
78 | struct net_device *dev; | 78 | struct net_device *dev; |
79 | int err = -ENOMEM; | 79 | int err = -ENOMEM; |
80 | int i; | ||
80 | 81 | ||
81 | dev = alloc_etherdev(sizeof(struct hplance_private)); | 82 | dev = alloc_etherdev(sizeof(struct hplance_private)); |
82 | if (!dev) | 83 | if (!dev) |
@@ -93,6 +94,15 @@ static int __devinit hplance_init_one(struct dio_dev *d, | |||
93 | goto out_release_mem_region; | 94 | goto out_release_mem_region; |
94 | 95 | ||
95 | dio_set_drvdata(d, dev); | 96 | dio_set_drvdata(d, dev); |
97 | |||
98 | printk(KERN_INFO "%s: %s; select code %d, addr %2.2x", dev->name, d->name, d->scode, dev->dev_addr[0]); | ||
99 | |||
100 | for (i=1; i<6; i++) { | ||
101 | printk(":%2.2x", dev->dev_addr[i]); | ||
102 | } | ||
103 | |||
104 | printk(", irq %d\n", d->ipl); | ||
105 | |||
96 | return 0; | 106 | return 0; |
97 | 107 | ||
98 | out_release_mem_region: | 108 | out_release_mem_region: |
@@ -119,8 +129,6 @@ static void __init hplance_init(struct net_device *dev, struct dio_dev *d) | |||
119 | struct hplance_private *lp; | 129 | struct hplance_private *lp; |
120 | int i; | 130 | int i; |
121 | 131 | ||
122 | printk(KERN_INFO "%s: %s; select code %d, addr", dev->name, d->name, d->scode); | ||
123 | |||
124 | /* reset the board */ | 132 | /* reset the board */ |
125 | out_8(va+DIO_IDOFF, 0xff); | 133 | out_8(va+DIO_IDOFF, 0xff); |
126 | udelay(100); /* ariba! ariba! udelay! udelay! */ | 134 | udelay(100); /* ariba! ariba! udelay! udelay! */ |
@@ -143,7 +151,6 @@ static void __init hplance_init(struct net_device *dev, struct dio_dev *d) | |||
143 | */ | 151 | */ |
144 | dev->dev_addr[i] = ((in_8(va + HPLANCE_NVRAMOFF + i*4 + 1) & 0xF) << 4) | 152 | dev->dev_addr[i] = ((in_8(va + HPLANCE_NVRAMOFF + i*4 + 1) & 0xF) << 4) |
145 | | (in_8(va + HPLANCE_NVRAMOFF + i*4 + 3) & 0xF); | 153 | | (in_8(va + HPLANCE_NVRAMOFF + i*4 + 3) & 0xF); |
146 | printk("%c%2.2x", i == 0 ? ' ' : ':', dev->dev_addr[i]); | ||
147 | } | 154 | } |
148 | 155 | ||
149 | lp = netdev_priv(dev); | 156 | lp = netdev_priv(dev); |
@@ -160,7 +167,6 @@ static void __init hplance_init(struct net_device *dev, struct dio_dev *d) | |||
160 | lp->lance.lance_log_tx_bufs = LANCE_LOG_TX_BUFFERS; | 167 | lp->lance.lance_log_tx_bufs = LANCE_LOG_TX_BUFFERS; |
161 | lp->lance.rx_ring_mod_mask = RX_RING_MOD_MASK; | 168 | lp->lance.rx_ring_mod_mask = RX_RING_MOD_MASK; |
162 | lp->lance.tx_ring_mod_mask = TX_RING_MOD_MASK; | 169 | lp->lance.tx_ring_mod_mask = TX_RING_MOD_MASK; |
163 | printk(", irq %d\n", lp->lance.irq); | ||
164 | } | 170 | } |
165 | 171 | ||
166 | /* This is disgusting. We have to check the DIO status register for ack every | 172 | /* This is disgusting. We have to check the DIO status register for ack every |