Merge branch 'akpm' (second patch-bomb from Andrew)
[cascardo/linux.git] / drivers / dma / ste_dma40.c
index 5fe5933..4d07106 100644 (file)
@@ -3051,7 +3051,7 @@ static int dma40_runtime_resume(struct device *dev)
 
 static const struct dev_pm_ops dma40_pm_ops = {
        SET_LATE_SYSTEM_SLEEP_PM_OPS(dma40_suspend, dma40_resume)
-       SET_PM_RUNTIME_PM_OPS(dma40_runtime_suspend,
+       SET_RUNTIME_PM_OPS(dma40_runtime_suspend,
                                dma40_runtime_resume,
                                NULL)
 };
@@ -3432,6 +3432,7 @@ static int __init d40_lcla_allocate(struct d40_base *base)
 
                        d40_err(base->dev, "Failed to allocate %d pages.\n",
                                base->lcla_pool.pages);
+                       ret = -ENOMEM;
 
                        for (j = 0; j < i; j++)
                                free_pages(page_list[j], base->lcla_pool.pages);