diff options
Diffstat (limited to 'drivers/gpu/drm/drm_platform.c')
-rw-r--r-- | drivers/gpu/drm/drm_platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_platform.c b/drivers/gpu/drm/drm_platform.c index 21fc82006b78..319ff5385601 100644 --- a/drivers/gpu/drm/drm_platform.c +++ b/drivers/gpu/drm/drm_platform.c | |||
@@ -64,7 +64,7 @@ static int drm_get_platform_dev(struct platform_device *platdev, | |||
64 | return 0; | 64 | return 0; |
65 | 65 | ||
66 | err_free: | 66 | err_free: |
67 | drm_dev_free(dev); | 67 | drm_dev_unref(dev); |
68 | return ret; | 68 | return ret; |
69 | } | 69 | } |
70 | 70 | ||