mmc: mmci: Do pm_runtime_put() after the host has been added
[linux-drm-fsl-dcu.git] / drivers / mmc / host / mmci.c
index 8232e9a02d407ca96495704fd266f02b5fd6fc8e..88aefa6fa8b117685ceb70c7a27e73ec3b5d9d5e 100644 (file)
@@ -1739,10 +1739,10 @@ static int mmci_probe(struct amba_device *dev,
 
        pm_runtime_set_autosuspend_delay(&dev->dev, 50);
        pm_runtime_use_autosuspend(&dev->dev);
-       pm_runtime_put(&dev->dev);
 
        mmc_add_host(mmc);
 
+       pm_runtime_put(&dev->dev);
        return 0;
 
  clk_disable: