]> err.no Git - linux-2.6/commitdiff
sata_mv: use hpriv->base instead of the host->iomap
authorSaeed Bishara <saeed@marvell.com>
Wed, 13 Feb 2008 21:09:09 +0000 (10:09 -1100)
committerJeff Garzik <jeff@garzik.org>
Wed, 20 Feb 2008 17:09:17 +0000 (12:09 -0500)
this fixes crash bug as the iomap table is not valid for integrated controllers.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
Acked-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_mv.c

index 0c0057e76a672dbfee51f81d3b29ec3637ba2cf2..eb97dde28d47ca72b755d8c496642e21ff3fc842 100644 (file)
@@ -870,7 +870,7 @@ static void mv_start_dma(struct ata_port *ap, void __iomem *port_mmio,
                struct mv_host_priv *hpriv = ap->host->private_data;
                int hard_port = mv_hardport_from_port(ap->port_no);
                void __iomem *hc_mmio = mv_hc_base_from_port(
-                               ap->host->iomap[MV_PRIMARY_BAR], hard_port);
+                                       mv_host_base(ap->host), hard_port);
                u32 hc_irq_cause, ipending;
 
                /* clear EDMA event indicators, if any */