Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71198
b: refs/heads/master
c: 57fedc7
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Oct 18, 2007
1 parent b7636b6 commit 7ed2edb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 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: c148b9d555decb77bba08fbcf2493ed427918c4e
refs/heads/master: 57fedc7ae5f712c9c24f5baf30a0fbf38c1bda20
15 changes: 4 additions & 11 deletions trunk/drivers/char/rocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1873,21 +1873,13 @@ static __init int register_PCI(int i, struct pci_dev *dev)
int fast_clock = 0;
int altChanRingIndicator = 0;
int ports_per_aiop = 8;
int ret;
unsigned int class_rev;
WordIO_t ConfigIO = 0;
ByteIO_t UPCIRingInd = 0;

if (!dev || pci_enable_device(dev))
return 0;

rcktpt_io_addr[i] = pci_resource_start(dev, 0);
ret = pci_read_config_dword(dev, PCI_CLASS_REVISION, &class_rev);

if (ret) {
printk(KERN_INFO " Error during register_PCI(), unable to read config dword \n");
return 0;
}

rcktpt_type[i] = ROCKET_TYPE_NORMAL;
rocketModel[i].loadrm2 = 0;
Expand Down Expand Up @@ -2041,8 +2033,9 @@ static __init int register_PCI(int i, struct pci_dev *dev)
ports_per_aiop = 6;
str = "6-port";

/* If class_rev is 1, the rocketmodem flash must be loaded. If it is 2 it is a "socketed" version. */
if ((class_rev & 0xFF) == 1) {
/* If revision is 1, the rocketmodem flash must be loaded.
* If it is 2 it is a "socketed" version. */
if (dev->revision == 1) {
rcktpt_type[i] = ROCKET_TYPE_MODEMII;
rocketModel[i].loadrm2 = 1;
} else {
Expand All @@ -2057,7 +2050,7 @@ static __init int register_PCI(int i, struct pci_dev *dev)
max_num_aiops = 1;
ports_per_aiop = 4;
str = "4-port";
if ((class_rev & 0xFF) == 1) {
if (dev->revision == 1) {
rcktpt_type[i] = ROCKET_TYPE_MODEMII;
rocketModel[i].loadrm2 = 1;
} else {
Expand Down

0 comments on commit 7ed2edb

Please sign in to comment.