Skip to content

Commit

Permalink
ide_platform: fix resources handling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Apr 26, 2008
1 parent b3a37f1 commit 3e2990e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/ide/legacy/ide_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3e2990e

Please sign in to comment.