Merge tag 'modules-6.4-rc1-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgro...
[linux-2.6-microblaze.git] / drivers / hwspinlock / omap_hwspinlock.c
index 33eeff9..1fb3a25 100644 (file)
@@ -94,11 +94,9 @@ static int omap_hwspinlock_probe(struct platform_device *pdev)
         * the module SYSSTATUS register
         */
        pm_runtime_enable(&pdev->dev);
-       ret = pm_runtime_get_sync(&pdev->dev);
-       if (ret < 0) {
-               pm_runtime_put_noidle(&pdev->dev);
+       ret = pm_runtime_resume_and_get(&pdev->dev);
+       if (ret < 0)
                goto runtime_err;
-       }
 
        /* Determine number of locks */
        i = readl(io_base + SYSSTATUS_OFFSET);