Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97905
b: refs/heads/master
c: 1c4d4ad
h: refs/heads/master
i:
  97903: 59468b3
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jun 10, 2008
1 parent e52e9a0 commit a861fae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 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: 8a7dbb9761d59996e4a037c969eabd8e93f3be1c
refs/heads/master: 1c4d4ad50ac5cc74c605c4a467db42c961ec7a69
15 changes: 7 additions & 8 deletions trunk/drivers/ide/pci/delkin_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,18 @@ static const struct ide_port_ops delkin_cb_port_ops = {
.quirkproc = ide_undecoded_slave,
};

static const struct ide_port_info delkin_cb_port_info = {
.port_ops = &delkin_cb_port_ops,
.host_flags = IDE_HFLAG_IO_32BIT | IDE_HFLAG_UNMASK_IRQS |
IDE_HFLAG_NO_DMA,
};

static int __devinit
delkin_cb_probe (struct pci_dev *dev, const struct pci_device_id *id)
{
unsigned long base;
hw_regs_t hw;
ide_hwif_t *hwif = NULL;
ide_drive_t *drive;
int i, rc;
u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };

Expand Down Expand Up @@ -90,22 +95,16 @@ delkin_cb_probe (struct pci_dev *dev, const struct pci_device_id *id)

ide_init_port_data(hwif, i);
ide_init_port_hw(hwif, &hw);
hwif->port_ops = &delkin_cb_port_ops;

idx[0] = i;

ide_device_add(idx, NULL);
ide_device_add(idx, &delkin_cb_port_info);

if (!hwif->present)
goto out_disable;

pci_set_drvdata(dev, hwif);

drive = &hwif->drives[0];
if (drive->present) {
drive->io_32bit = 1;
drive->unmask = 1;
}
return 0;

out_disable:
Expand Down

0 comments on commit a861fae

Please sign in to comment.