r = amdgpu_device_get_job_timeout_settings(adev);
if (r) {
dev_err(adev->dev, "invalid lockup_timeout parameter syntax\n");
- goto failed_unmap;
+ return r;
}
/* early init functions */
r = amdgpu_device_ip_early_init(adev);
if (r)
- goto failed_unmap;
+ return r;
/* doorbell bar mapping and doorbell index init*/
amdgpu_device_doorbell_init(adev);
if (boco)
vga_switcheroo_fini_domain_pm_ops(adev->dev);
-failed_unmap:
-#ifdef __linux__
- iounmap(adev->rmmio);
- adev->rmmio = NULL;
-#endif
-
return r;
}