diff options
| -rw-r--r-- | drivers/ide/legacy/ide_platform.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/ide/legacy/ide_platform.c b/drivers/ide/legacy/ide_platform.c index d3bc3f24e05d..a249562b34b5 100644 --- a/drivers/ide/legacy/ide_platform.c +++ b/drivers/ide/legacy/ide_platform.c | |||
| @@ -44,6 +44,10 @@ static void __devinit plat_ide_setup_ports(hw_regs_t *hw, | |||
| 44 | hw->chipset = ide_generic; | 44 | hw->chipset = ide_generic; |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | static const struct ide_port_info platform_ide_port_info = { | ||
| 48 | .host_flags = IDE_HFLAG_NO_DMA, | ||
| 49 | }; | ||
| 50 | |||
| 47 | static int __devinit plat_ide_probe(struct platform_device *pdev) | 51 | static int __devinit plat_ide_probe(struct platform_device *pdev) |
| 48 | { | 52 | { |
| 49 | struct resource *res_base, *res_alt, *res_irq; | 53 | struct resource *res_base, *res_alt, *res_irq; |
| @@ -54,6 +58,7 @@ static int __devinit plat_ide_probe(struct platform_device *pdev) | |||
| 54 | int ret = 0; | 58 | int ret = 0; |
| 55 | int mmio = 0; | 59 | int mmio = 0; |
| 56 | hw_regs_t hw; | 60 | hw_regs_t hw; |
| 61 | struct ide_port_info d = platform_ide_port_info; | ||
| 57 | 62 | ||
| 58 | pdata = pdev->dev.platform_data; | 63 | pdata = pdev->dev.platform_data; |
| 59 | 64 | ||
| @@ -102,13 +107,13 @@ static int __devinit plat_ide_probe(struct platform_device *pdev) | |||
| 102 | ide_init_port_hw(hwif, &hw); | 107 | ide_init_port_hw(hwif, &hw); |
| 103 | 108 | ||
| 104 | if (mmio) { | 109 | if (mmio) { |
| 105 | hwif->host_flags = IDE_HFLAG_MMIO; | 110 | d.host_flags |= IDE_HFLAG_MMIO; |
| 106 | default_hwif_mmiops(hwif); | 111 | default_hwif_mmiops(hwif); |
| 107 | } | 112 | } |
| 108 | 113 | ||
| 109 | idx[0] = hwif->index; | 114 | idx[0] = hwif->index; |
| 110 | 115 | ||
| 111 | ide_device_add(idx, NULL); | 116 | ide_device_add(idx, &d); |
| 112 | 117 | ||
| 113 | platform_set_drvdata(pdev, hwif); | 118 | platform_set_drvdata(pdev, hwif); |
| 114 | 119 | ||
