Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102116
b: refs/heads/master
c: 47bc7e7
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 16, 2008
1 parent 1318206 commit 4961a82
Show file tree
Hide file tree
Showing 2 changed files with 16 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: ff23712e791fd80f3b088d5e1c5733c0944cfe64
refs/heads/master: 47bc7e7425d198ad1f8c4597b0bf28619fcce0fd
28 changes: 15 additions & 13 deletions trunk/drivers/ide/arm/rapide.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,26 @@ rapide_probe(struct expansion_card *ec, const struct ecard_id *id)
goto release;
}

hwif = ide_find_port();
if (hwif) {
memset(&hw, 0, sizeof(hw));
rapide_setup_ports(&hw, base, base + 0x818, 1 << 6, ec->irq);
hw.chipset = ide_generic;
hw.dev = &ec->dev;
memset(&hw, 0, sizeof(hw));
rapide_setup_ports(&hw, base, base + 0x818, 1 << 6, ec->irq);
hw.chipset = ide_generic;
hw.dev = &ec->dev;

ide_init_port_hw(hwif, &hw);
hwif = ide_find_port();
if (hwif == NULL) {
ret = -ENOENT;
goto release;
}

default_hwif_mmiops(hwif);
ide_init_port_hw(hwif, &hw);
default_hwif_mmiops(hwif);

idx[0] = hwif->index;
idx[0] = hwif->index;

ide_device_add(idx, &rapide_port_info);
ide_device_add(idx, &rapide_port_info);

ecard_set_drvdata(ec, hwif);
goto out;
}
ecard_set_drvdata(ec, hwif);
goto out;

release:
ecard_release_resources(ec);
Expand Down

0 comments on commit 4961a82

Please sign in to comment.