aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 11:36:37 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 11:36:37 -0400
commit3e2990eae03c3f998f365824330290d227e4415a (patch)
tree434fa91f3c50fa5a37abddacacf821b82a5fcc21
parentb3a37f1284e05c35687522248e66dfda62924066 (diff)
ide_platform: fix resources handling
Tell IDE layer to not manage resources by always setting hwif->mmio flag (resources are handled by a platform device). Cc: Anton Vorontsov <avorontsov@ru.mvista.com> Cc: Vitaly Bordug <vitb@kernel.crashing.org> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r--drivers/ide/legacy/ide_platform.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/legacy/ide_platform.c b/drivers/ide/legacy/ide_platform.c
index ffa57c1175d0..bf240775531e 100644
--- a/drivers/ide/legacy/ide_platform.c
+++ b/drivers/ide/legacy/ide_platform.c
@@ -100,11 +100,10 @@ static int __devinit plat_ide_probe(struct platform_device *pdev)
100 hw.dev = &pdev->dev; 100 hw.dev = &pdev->dev;
101 101
102 ide_init_port_hw(hwif, &hw); 102 ide_init_port_hw(hwif, &hw);
103 hwif->mmio = 1;
103 104
104 if (mmio) { 105 if (mmio)
105 hwif->mmio = 1;
106 default_hwif_mmiops(hwif); 106 default_hwif_mmiops(hwif);
107 }
108 107
109 idx[0] = hwif->index; 108 idx[0] = hwif->index;
110 109