]> Git Repo - J-linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
drm/amdgpu: drm_device to amdgpu_device by inline-f (v2)
[J-linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_xgmi.c
index 08ed4dddfaf1cc94764512b1d2fcc0ce76704a7b..bda3f709a8e17df52741635ae0505371de309e7e 100644 (file)
@@ -215,7 +215,7 @@ static ssize_t amdgpu_xgmi_show_device_id(struct device *dev,
                                     char *buf)
 {
        struct drm_device *ddev = dev_get_drvdata(dev);
-       struct amdgpu_device *adev = ddev->dev_private;
+       struct amdgpu_device *adev = drm_to_adev(ddev);
 
        return snprintf(buf, PAGE_SIZE, "%llu\n", adev->gmc.xgmi.node_id);
 
@@ -227,7 +227,7 @@ static ssize_t amdgpu_xgmi_show_error(struct device *dev,
                                      char *buf)
 {
        struct drm_device *ddev = dev_get_drvdata(dev);
-       struct amdgpu_device *adev = ddev->dev_private;
+       struct amdgpu_device *adev = drm_to_adev(ddev);
        uint32_t ficaa_pie_ctl_in, ficaa_pie_status_in;
        uint64_t fica_out;
        unsigned int error_count = 0;
This page took 0.028093 seconds and 4 git commands to generate.