diff options
Diffstat (limited to 'drivers/gpu/drm/tilcdc/tilcdc_drv.c')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_drv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index b0d70f943cec..72ce063aa0d8 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <drm/drm_atomic.h> | 23 | #include <drm/drm_atomic.h> |
24 | #include <drm/drm_atomic_helper.h> | 24 | #include <drm/drm_atomic_helper.h> |
25 | #include <drm/drm_fb_helper.h> | 25 | #include <drm/drm_fb_helper.h> |
26 | #include <drm/drm_gem_framebuffer_helper.h> | ||
26 | 27 | ||
27 | #include "tilcdc_drv.h" | 28 | #include "tilcdc_drv.h" |
28 | #include "tilcdc_regs.h" | 29 | #include "tilcdc_regs.h" |
@@ -65,7 +66,7 @@ static struct of_device_id tilcdc_of_match[]; | |||
65 | static struct drm_framebuffer *tilcdc_fb_create(struct drm_device *dev, | 66 | static struct drm_framebuffer *tilcdc_fb_create(struct drm_device *dev, |
66 | struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd) | 67 | struct drm_file *file_priv, const struct drm_mode_fb_cmd2 *mode_cmd) |
67 | { | 68 | { |
68 | return drm_fb_cma_create(dev, file_priv, mode_cmd); | 69 | return drm_gem_fb_create(dev, file_priv, mode_cmd); |
69 | } | 70 | } |
70 | 71 | ||
71 | static void tilcdc_fb_output_poll_changed(struct drm_device *dev) | 72 | static void tilcdc_fb_output_poll_changed(struct drm_device *dev) |
@@ -225,7 +226,7 @@ static void tilcdc_fini(struct drm_device *dev) | |||
225 | 226 | ||
226 | pm_runtime_disable(dev->dev); | 227 | pm_runtime_disable(dev->dev); |
227 | 228 | ||
228 | drm_dev_unref(dev); | 229 | drm_dev_put(dev); |
229 | } | 230 | } |
230 | 231 | ||
231 | static int tilcdc_init(struct drm_driver *ddrv, struct device *dev) | 232 | static int tilcdc_init(struct drm_driver *ddrv, struct device *dev) |