Skip to content

Commit

Permalink
solos: Automatically determine number of ports
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Williams <nathan@traverse.com.au>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Nathan Williams authored and David Woodhouse committed Mar 17, 2009
1 parent 97d759d commit 0fc36aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/atm/solos-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,8 @@ static int fpga_probe(struct pci_dev *dev, const struct pci_device_id *id)
iowrite32(0xF0, card->config_regs + FLAGS_ADDR);
}

card->nr_ports = 2; /* FIXME: Detect daughterboard */
data32 = ioread32(card->config_regs + PORTS);
card->nr_ports = (data32 & 0x000000FF);

pci_set_drvdata(dev, card);

Expand Down

0 comments on commit 0fc36aa

Please sign in to comment.