libata: remove WARN() for DMA or PIO command without data
[pandora-kernel.git] / drivers / ata / sata_mv.c
index 0b8b8b4..d5091f3 100644 (file)
@@ -4059,6 +4059,9 @@ static int mv_platform_probe(struct platform_device *pdev)
        host->iomap = NULL;
        hpriv->base = devm_ioremap(&pdev->dev, res->start,
                                   resource_size(res));
+       if (!hpriv->base)
+               return -ENOMEM;
+
        hpriv->base -= SATAHC0_REG_BASE;
 
 #if defined(CONFIG_HAVE_CLK)