diff --git a/drivers/gpu/drm/panthor/panthor_device.c b/drivers/gpu/drm/panthor/panthor_device.c index fd74adb4df32..d9b165438307 100644 --- a/drivers/gpu/drm/panthor/panthor_device.c +++ b/drivers/gpu/drm/panthor/panthor_device.c @@ -241,7 +241,7 @@ int panthor_device_init(struct panthor_device *ptdev) ret = pm_runtime_resume_and_get(ptdev->base.dev); if (ret) - goto err_unplug_gpu; + return ret; /* If PM is disabled, we need to call panthor_device_resume() manually. */ if (!IS_ENABLED(CONFIG_PM)) { @@ -256,7 +256,7 @@ int panthor_device_init(struct panthor_device *ptdev) ret = panthor_gpu_coherency_init(ptdev); if (ret) - return ret; + goto err_unplug_gpu; ret = panthor_mmu_init(ptdev); if (ret)