Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96063
b: refs/heads/master
c: be0c007
h: refs/heads/master
i:
  96061: 8cffeae
  96059: 8f292ff
  96055: 9e351f3
  96047: bc5d189
  96031: 8b4dc17
  95999: 05c4851
v: v3
  • Loading branch information
David S. Miller committed May 4, 2008
1 parent d5fe829 commit df9cb2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e544ff00da4b53069dbca3debbfb02d455f72467
refs/heads/master: be0c007ac64f880a946995d6d1fc654acc81484d
11 changes: 7 additions & 4 deletions trunk/drivers/net/niu.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* niu.c: Neptune ethernet driver.
*
* Copyright (C) 2007 David S. Miller (davem@davemloft.net)
* Copyright (C) 2007, 2008 David S. Miller (davem@davemloft.net)
*/

#include <linux/module.h>
Expand Down Expand Up @@ -33,8 +33,8 @@

#define DRV_MODULE_NAME "niu"
#define PFX DRV_MODULE_NAME ": "
#define DRV_MODULE_VERSION "0.8"
#define DRV_MODULE_RELDATE "April 24, 2008"
#define DRV_MODULE_VERSION "0.9"
#define DRV_MODULE_RELDATE "May 4, 2008"

static char version[] __devinitdata =
DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
Expand Down Expand Up @@ -7264,8 +7264,11 @@ static int __devinit niu_get_and_validate_port(struct niu *np)
parent->num_ports = nr64(ESPC_NUM_PORTS_MACS) &
ESPC_NUM_PORTS_MACS_VAL;

/* All of the current probing methods fail on
* Maramba on-board parts.
*/
if (!parent->num_ports)
return -ENODEV;
parent->num_ports = 4;
}
}
}
Expand Down

0 comments on commit df9cb2c

Please sign in to comment.