]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide_platform: fix resources handling
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 26 Apr 2008 15:36:37 +0000 (17:36 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 26 Apr 2008 15:36:37 +0000 (17:36 +0200)
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>
drivers/ide/legacy/ide_platform.c

index ffa57c1175d0e4783ab0fc2e05628d65196d9e9c..bf240775531e90d0ba74efd0029e73ee462ecf77 100644 (file)
@@ -100,11 +100,10 @@ static int __devinit plat_ide_probe(struct platform_device *pdev)
        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;