Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43716
b: refs/heads/master
c: fefaf9a
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Dec 8, 2006
1 parent 5bc3686 commit 66d487e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 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: b1b84fe0d76b89534da706372ef719bbaa9fef0a
refs/heads/master: fefaf9a789607d3a997d3d05bd2a72586ae0c901
15 changes: 2 additions & 13 deletions trunk/drivers/char/stallion.c
Original file line number Diff line number Diff line change
Expand Up @@ -2421,9 +2421,6 @@ static int __devinit stl_pciprobe(struct pci_dev *pdev,
struct stlbrd *brdp;
unsigned int brdtype = ent->driver_data;

pr_debug("stl_initpcibrd(brdtype=%d,busnr=%x,devnr=%x)\n", brdtype,
pdev->bus->number, pdev->devfn);

if ((pdev->class >> 8) == PCI_CLASS_STORAGE_IDE)
return -ENODEV;

Expand All @@ -2435,20 +2432,12 @@ static int __devinit stl_pciprobe(struct pci_dev *pdev,
if ((brdp = stl_allocbrd()) == NULL)
return(-ENOMEM);
if ((brdp->brdnr = stl_getbrdnr()) < 0) {
printk("STALLION: too many boards found, "
dev_err(&pdev->dev, "too many boards found, "
"maximum supported %d\n", STL_MAXBRDS);
return(0);
}
brdp->brdtype = brdtype;

/*
* Different Stallion boards use the BAR registers in different ways,
* so set up io addresses based on board type.
*/
pr_debug("%s(%d): BAR[]=%Lx,%Lx,%Lx,%Lx IRQ=%x\n", __FILE__, __LINE__,
pci_resource_start(pdev, 0), pci_resource_start(pdev, 1),
pci_resource_start(pdev, 2), pci_resource_start(pdev, 3), pdev->irq);

/*
* We have all resources from the board, so let's setup the actual
* board structure now.
Expand All @@ -2467,7 +2456,7 @@ static int __devinit stl_pciprobe(struct pci_dev *pdev,
brdp->ioaddr2 = pci_resource_start(pdev, 1);
break;
default:
printk("STALLION: unknown PCI board type=%d\n", brdtype);
dev_err(&pdev->dev, "unknown PCI board type=%u\n", brdtype);
break;
}

Expand Down

0 comments on commit 66d487e

Please sign in to comment.