Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102100
b: refs/heads/master
c: e48905e
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 16, 2008
1 parent 8437e00 commit b2d3569
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: c1da678b5b4d8ce7836ed1ded80109d1db37efe0
refs/heads/master: e48905e9cfffd21861c3521d828ae992a53aac67
7 changes: 5 additions & 2 deletions trunk/drivers/ide/mips/swarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ static struct resource swarm_ide_resource = {

static struct platform_device *swarm_ide_dev;

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

/*
* swarm_ide_probe - if the board header indicates the existence of
* Generic Bus IDE, allocate a HWIF for it.
Expand Down Expand Up @@ -110,7 +114,6 @@ static int __devinit swarm_ide_probe(struct device *dev)
base = ioremap(offset, size);

/* Setup MMIO ops. */
hwif->host_flags = IDE_HFLAG_MMIO;
default_hwif_mmiops(hwif);

for (i = 0; i <= 7; i++)
Expand All @@ -125,7 +128,7 @@ static int __devinit swarm_ide_probe(struct device *dev)

idx[0] = hwif->index;

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

dev_set_drvdata(dev, hwif);

Expand Down

0 comments on commit b2d3569

Please sign in to comment.