Skip to content

Commit

Permalink
sata_mv: use hpriv->base instead of the host->iomap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Saeed Bishara authored and Jeff Garzik committed Feb 20, 2008
1 parent 2e7e121 commit 0fca0d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/sata_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 0fca0d6

Please sign in to comment.