owl_host->irq = platform_get_irq(pdev, 0);
        if (owl_host->irq < 0) {
                ret = -EINVAL;
-               goto err_free_host;
+               goto err_release_channel;
        }
 
        ret = devm_request_irq(&pdev->dev, owl_host->irq, owl_irq_handler,
        if (ret) {
                dev_err(&pdev->dev, "Failed to request irq %d\n",
                        owl_host->irq);
-               goto err_free_host;
+               goto err_release_channel;
        }
 
        ret = mmc_add_host(mmc);
        if (ret) {
                dev_err(&pdev->dev, "Failed to add host\n");
-               goto err_free_host;
+               goto err_release_channel;
        }
 
        dev_dbg(&pdev->dev, "Owl MMC Controller Initialized\n");
 
        return 0;
 
+err_release_channel:
+       dma_release_channel(owl_host->dma);
 err_free_host:
        mmc_free_host(mmc);
 
 
        mmc_remove_host(mmc);
        disable_irq(owl_host->irq);
+       dma_release_channel(owl_host->dma);
        mmc_free_host(mmc);
 
        return 0;