Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102107
b: refs/heads/master
c: 7b60fa1
h: refs/heads/master
i:
  102105: c05b876
  102103: 5530f67
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 16, 2008
1 parent a916529 commit e602334
Show file tree
Hide file tree
Showing 2 changed files with 8 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: f81eb80bbb949f9498980c785ef7dd4c994a4909
refs/heads/master: 7b60fa16ca50b0f8cb9d007faee0dff71b397fb8
9 changes: 7 additions & 2 deletions trunk/drivers/ide/legacy/ide_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ static void __devinit plat_ide_setup_ports(hw_regs_t *hw,
hw->chipset = ide_generic;
}

static const struct ide_port_info platform_ide_port_info = {
.host_flags = IDE_HFLAG_NO_DMA,
};

static int __devinit plat_ide_probe(struct platform_device *pdev)
{
struct resource *res_base, *res_alt, *res_irq;
Expand All @@ -54,6 +58,7 @@ static int __devinit plat_ide_probe(struct platform_device *pdev)
int ret = 0;
int mmio = 0;
hw_regs_t hw;
struct ide_port_info d = platform_ide_port_info;

pdata = pdev->dev.platform_data;

Expand Down Expand Up @@ -102,13 +107,13 @@ static int __devinit plat_ide_probe(struct platform_device *pdev)
ide_init_port_hw(hwif, &hw);

if (mmio) {
hwif->host_flags = IDE_HFLAG_MMIO;
d.host_flags |= IDE_HFLAG_MMIO;
default_hwif_mmiops(hwif);
}

idx[0] = hwif->index;

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

platform_set_drvdata(pdev, hwif);

Expand Down

0 comments on commit e602334

Please sign in to comment.