Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102117
b: refs/heads/master
c: 67717e2
h: refs/heads/master
i:
  102115: 1318206
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 16, 2008
1 parent 4961a82 commit c66f29c
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 47bc7e7425d198ad1f8c4597b0bf28619fcce0fd
refs/heads/master: 67717e224181527987cce800fa2ddb5c8c1e9315
18 changes: 10 additions & 8 deletions trunk/drivers/ide/arm/icside.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <asm/dma.h>
#include <asm/ecard.h>

#define DRV_NAME "icside"

#define ICS_IDENT_OFFSET 0x2280

#define ICS_ARCIN_V5_INTRSTAT 0x0000
Expand Down Expand Up @@ -546,27 +548,27 @@ icside_register_v6(struct icside_state *state, struct expansion_card *ec)
ide_init_port_hw(hwif, &hw[0]);
default_hwif_mmiops(hwif);

idx[0] = hwif->index;

mate = ide_find_port();
if (mate == NULL)
return -ENODEV;
if (mate) {
ide_init_port_hw(mate, &hw[1]);
default_hwif_mmiops(mate);

ide_init_port_hw(mate, &hw[1]);
default_hwif_mmiops(mate);
idx[1] = mate->index;
}

state->hwif[0] = hwif;
state->hwif[1] = mate;

ecard_set_drvdata(ec, state);

if (ec->dma != NO_DMA && !request_dma(ec->dma, hwif->name)) {
if (ec->dma != NO_DMA && !request_dma(ec->dma, DRV_NAME)) {
d.init_dma = icside_dma_init;
d.port_ops = &icside_v6_port_ops;
d.dma_ops = NULL;
}

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

ide_device_add(idx, &d);

return 0;
Expand Down

0 comments on commit c66f29c

Please sign in to comment.