diff options
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 54ac8a845e9f..7077ed65d403 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -1711,7 +1711,7 @@ extern const struct drm_ioctl_desc amdgpu_ioctls_kms[]; | |||
1711 | extern const int amdgpu_max_kms_ioctl; | 1711 | extern const int amdgpu_max_kms_ioctl; |
1712 | 1712 | ||
1713 | int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags); | 1713 | int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags); |
1714 | int amdgpu_driver_unload_kms(struct drm_device *dev); | 1714 | void amdgpu_driver_unload_kms(struct drm_device *dev); |
1715 | void amdgpu_driver_lastclose_kms(struct drm_device *dev); | 1715 | void amdgpu_driver_lastclose_kms(struct drm_device *dev); |
1716 | int amdgpu_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv); | 1716 | int amdgpu_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv); |
1717 | void amdgpu_driver_postclose_kms(struct drm_device *dev, | 1717 | void amdgpu_driver_postclose_kms(struct drm_device *dev, |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index 9af87eaf8ee3..8aef25828888 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |||
@@ -50,12 +50,12 @@ static inline bool amdgpu_has_atpx(void) { return false; } | |||
50 | * This is the main unload function for KMS (all asics). | 50 | * This is the main unload function for KMS (all asics). |
51 | * Returns 0 on success. | 51 | * Returns 0 on success. |
52 | */ | 52 | */ |
53 | int amdgpu_driver_unload_kms(struct drm_device *dev) | 53 | void amdgpu_driver_unload_kms(struct drm_device *dev) |
54 | { | 54 | { |
55 | struct amdgpu_device *adev = dev->dev_private; | 55 | struct amdgpu_device *adev = dev->dev_private; |
56 | 56 | ||
57 | if (adev == NULL) | 57 | if (adev == NULL) |
58 | return 0; | 58 | return; |
59 | 59 | ||
60 | if (adev->rmmio == NULL) | 60 | if (adev->rmmio == NULL) |
61 | goto done_free; | 61 | goto done_free; |
@@ -74,7 +74,6 @@ int amdgpu_driver_unload_kms(struct drm_device *dev) | |||
74 | done_free: | 74 | done_free: |
75 | kfree(adev); | 75 | kfree(adev); |
76 | dev->dev_private = NULL; | 76 | dev->dev_private = NULL; |
77 | return 0; | ||
78 | } | 77 | } |
79 | 78 | ||
80 | /** | 79 | /** |