diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-28 13:20:22 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-02-28 13:20:22 +1100 |
commit | 452e2c995206c06ac242b41ad1e5fd433889e17c (patch) | |
tree | f60e6e121f1b22015a4407a417576b84ac92dd00 | |
parent | b3e06f78690dc35ed397135c36d66f2a2d7e59c6 (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.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ide/legacy/ide_platform.c b/drivers/ide/legacy/ide_platform.c index 7332ec221a36..3c8bd4e4144e 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) 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; |