aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hp.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2012-03-04 19:47:13 -0500
commitc71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch)
treeecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/hp.c
parentea53c912f8a86a8567697115b6a0d8152beee5c8 (diff)
parent6a00f206debf8a5c8899055726ad127dbeeed098 (diff)
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts: litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/hp.c')
-rw-r--r--drivers/net/hp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/hp.c b/drivers/net/hp.c
index 86ececd3c658..ef2014375e62 100644
--- a/drivers/net/hp.c
+++ b/drivers/net/hp.c
@@ -162,9 +162,9 @@ static int __init hp_probe1(struct net_device *dev, int ioaddr)
162 162
163 /* Snarf the interrupt now. Someday this could be moved to open(). */ 163 /* Snarf the interrupt now. Someday this could be moved to open(). */
164 if (dev->irq < 2) { 164 if (dev->irq < 2) {
165 int irq_16list[] = { 11, 10, 5, 3, 4, 7, 9, 0}; 165 static const int irq_16list[] = { 11, 10, 5, 3, 4, 7, 9, 0};
166 int irq_8list[] = { 7, 5, 3, 4, 9, 0}; 166 static const int irq_8list[] = { 7, 5, 3, 4, 9, 0};
167 int *irqp = wordmode ? irq_16list : irq_8list; 167 const int *irqp = wordmode ? irq_16list : irq_8list;
168 do { 168 do {
169 int irq = *irqp; 169 int irq = *irqp;
170 if (request_irq (irq, NULL, 0, "bogus", NULL) != -EBUSY) { 170 if (request_irq (irq, NULL, 0, "bogus", NULL) != -EBUSY) {
@@ -204,10 +204,10 @@ static int __init hp_probe1(struct net_device *dev, int ioaddr)
204 ei_status.rx_start_page = HP_START_PG + TX_PAGES; 204 ei_status.rx_start_page = HP_START_PG + TX_PAGES;
205 ei_status.stop_page = wordmode ? HP_16BSTOP_PG : HP_8BSTOP_PG; 205 ei_status.stop_page = wordmode ? HP_16BSTOP_PG : HP_8BSTOP_PG;
206 206
207 ei_status.reset_8390 = &hp_reset_8390; 207 ei_status.reset_8390 = hp_reset_8390;
208 ei_status.get_8390_hdr = &hp_get_8390_hdr; 208 ei_status.get_8390_hdr = hp_get_8390_hdr;
209 ei_status.block_input = &hp_block_input; 209 ei_status.block_input = hp_block_input;
210 ei_status.block_output = &hp_block_output; 210 ei_status.block_output = hp_block_output;
211 hp_init_card(dev); 211 hp_init_card(dev);
212 212
213 retval = register_netdev(dev); 213 retval = register_netdev(dev);