aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNathan Williams <nathan@traverse.com.au>2009-02-06 18:19:13 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-03-17 11:01:02 -0400
commit0fc36aa52a602bfe2aeb7ded7e90b0fa70df24c2 (patch)
tree358184042c81a0294a30602bebdfbf1eaf731e5f /drivers
parent97d759d3e86f9c7ced094352838e7e4d1cf8cddf (diff)
solos: Automatically determine number of ports
Signed-off-by: Nathan Williams <nathan@traverse.com.au> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/atm/solos-pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c
index 1ff730497217..6fe8f8fc8553 100644
--- a/drivers/atm/solos-pci.c
+++ b/drivers/atm/solos-pci.c
@@ -1104,7 +1104,8 @@ static int fpga_probe(struct pci_dev *dev, const struct pci_device_id *id)
1104 iowrite32(0xF0, card->config_regs + FLAGS_ADDR); 1104 iowrite32(0xF0, card->config_regs + FLAGS_ADDR);
1105 } 1105 }
1106 1106
1107 card->nr_ports = 2; /* FIXME: Detect daughterboard */ 1107 data32 = ioread32(card->config_regs + PORTS);
1108 card->nr_ports = (data32 & 0x000000FF);
1108 1109
1109 pci_set_drvdata(dev, card); 1110 pci_set_drvdata(dev, card);
1110 1111