Skip to contentSkip to conversation

ide_platform: fix resources handling

PATCH New Bartlomiej Zolnierkiewicz 1 participant 1 message Feb 20, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

---
 drivers/ide/legacy/ide_platform.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/ide/legacy/ide_platform.c +2 -3
Index: b/drivers/ide/legacy/ide_platform.c
===================================================================
@@ -100,11 +100,10 @@ static int __devinit plat_ide_probe(stru
 	hw.dev = &pdev->dev;
 
 	ide_init_port_hw(hwif, &hw);
+	hwif->mmio = 1;
 
-	if (mmio) {
-		hwif->mmio = 1;
+	if (mmio)
 		default_hwif_mmiops(hwif);
-	}
 
 	idx[0] = hwif->index;