diff options
| author | Alexandre Courbot <acourbot@nvidia.com> | 2014-08-12 18:16:53 -0400 |
|---|---|---|
| committer | Ben Skeggs <bskeggs@redhat.com> | 2014-08-14 17:58:39 -0400 |
| commit | 4898ac046d24894d7b2a5a96a1cff4e095844323 (patch) | |
| tree | 076b4c50a42ddd17b391a5e83c120883789df526 | |
| parent | 5d6d94f76100e24dfd7a3e20a0f8504f478f52f9 (diff) | |
drm/nouveau/platform: fix compilation error
nouveau_platform.c was still using the old nouveau_dev() macro,
triggering a compilation error. Fix this.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| -rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_platform.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_platform.c b/drivers/gpu/drm/nouveau/nouveau_platform.c index 0ffeb50d0088..246a824c16ca 100644 --- a/drivers/gpu/drm/nouveau/nouveau_platform.c +++ b/drivers/gpu/drm/nouveau/nouveau_platform.c | |||
| @@ -149,7 +149,8 @@ power_down: | |||
| 149 | static int nouveau_platform_remove(struct platform_device *pdev) | 149 | static int nouveau_platform_remove(struct platform_device *pdev) |
| 150 | { | 150 | { |
| 151 | struct drm_device *drm_dev = platform_get_drvdata(pdev); | 151 | struct drm_device *drm_dev = platform_get_drvdata(pdev); |
| 152 | struct nouveau_device *device = nouveau_dev(drm_dev); | 152 | struct nouveau_drm *drm = nouveau_drm(drm_dev); |
| 153 | struct nouveau_device *device = nvkm_device(&drm->device); | ||
| 153 | struct nouveau_platform_gpu *gpu = nv_device_to_platform(device)->gpu; | 154 | struct nouveau_platform_gpu *gpu = nv_device_to_platform(device)->gpu; |
| 154 | 155 | ||
| 155 | nouveau_drm_device_remove(drm_dev); | 156 | nouveau_drm_device_remove(drm_dev); |
