Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102108
b: refs/heads/master
c: eb3aff5
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 16, 2008
1 parent e602334 commit 1ff5580
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 23 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: 7b60fa16ca50b0f8cb9d007faee0dff71b397fb8
refs/heads/master: eb3aff5530d22eb4be0a99c9d39c9ffde7b9891a
8 changes: 4 additions & 4 deletions trunk/drivers/ide/h8300/ide-h8300.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <asm/io.h>
#include <asm/irq.h>

#define DRV_NAME "ide-h8300"

#define bswap(d) \
({ \
u16 r; \
Expand Down Expand Up @@ -196,11 +198,9 @@ static int __init h8300_ide_init(void)

hw_setup(&hw);

hwif = ide_find_port();
if (hwif == NULL) {
printk(KERN_ERR "ide-h8300: IDE I/F register failed\n");
hwif = ide_find_port_slot(&h8300_port_info);
if (hwif == NULL)
return -ENOENT;
}

index = hwif->index;
ide_init_port_hw(hwif, &hw);
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,9 @@ ide_hwif_t *ide_find_port_slot(const struct ide_port_info *d)
}
}

printk(KERN_ERR "%s: no free slot for interface\n",
d ? d->name : "ide");

return NULL;

out_found:
Expand Down
7 changes: 3 additions & 4 deletions trunk/drivers/ide/mips/swarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ static struct resource swarm_ide_resource = {
static struct platform_device *swarm_ide_dev;

static const struct ide_port_info swarm_port_info = {
.name = DRV_NAME,
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA,
};

Expand All @@ -81,11 +82,9 @@ static int __devinit swarm_ide_probe(struct device *dev)
if (!SIBYTE_HAVE_IDE)
return -ENODEV;

hwif = ide_find_port();
if (hwif == NULL) {
printk(KERN_ERR DRV_NAME ": no free slot for interface\n");
hwif = ide_find_port_slot(&swarm_port_info);
if (hwif == NULL)
return -ENOMEM;
}

base = ioremap(A_IO_EXT_BASE, 0x800);
offset = __raw_readq(base + R_IO_EXT_REG(R_IO_EXT_START_ADDR, IDE_CS));
Expand Down
7 changes: 2 additions & 5 deletions trunk/drivers/ide/pci/scc_pata.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,9 @@ static int scc_ide_setup_pci_device(struct pci_dev *dev,
u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };
int i;

hwif = ide_find_port();
if (hwif == NULL) {
printk(KERN_ERR "%s: too many IDE interfaces, "
"no room in table\n", SCC_PATA_NAME);
hwif = ide_find_port_slot(d);
if (hwif == NULL)
return -ENOMEM;
}

memset(&hw, 0, sizeof(hw));
for (i = 0; i <= 8; i++)
Expand Down
8 changes: 3 additions & 5 deletions trunk/drivers/ide/pci/sgiioc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ static const struct ide_dma_ops sgiioc4_dma_ops = {
};

static const struct ide_port_info sgiioc4_port_info __devinitdata = {
.name = DRV_NAME,
.chipset = ide_pci,
.init_dma = ide_dma_sgiioc4,
.port_ops = &sgiioc4_port_ops,
Expand All @@ -587,12 +588,9 @@ sgiioc4_ide_setup_pci_device(struct pci_dev *dev)
hw_regs_t hw;
struct ide_port_info d = sgiioc4_port_info;

hwif = ide_find_port();
if (hwif == NULL) {
printk(KERN_ERR "%s: too many IDE interfaces, no room in table\n",
DRV_NAME);
hwif = ide_find_port_slot(&d);
if (hwif == NULL)
return -ENOMEM;
}

/* Get the CmdBlk and CtrlBlk Base Registers */
bar0 = pci_resource_start(dev, 0);
Expand Down
5 changes: 1 addition & 4 deletions trunk/drivers/ide/setup-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,8 @@ static ide_hwif_t *ide_hwif_configure(struct pci_dev *dev,
}

hwif = ide_find_port_slot(d);
if (hwif == NULL) {
printk(KERN_ERR "%s: too many IDE interfaces, no room in "
"table\n", d->name);
if (hwif == NULL)
return NULL;
}

memset(&hw, 0, sizeof(hw));
hw.irq = irq;
Expand Down

0 comments on commit 1ff5580

Please sign in to comment.