Merge tag 'tilcdc-4.15-fixes' of https://github.com/jsarha/linux into drm-next
[sfrench/cifs-2.6.git] / drivers / gpu / drm / hisilicon / kirin / kirin_drm_drv.c
index e27352ca26c4041ad61da6d5caf82dd1bff237f9..ddb0403f1975e690a415cdbeb3fa12aded8b5744 100644 (file)
@@ -22,6 +22,7 @@
 #include <drm/drmP.h>
 #include <drm/drm_gem_cma_helper.h>
 #include <drm/drm_fb_cma_helper.h>
+#include <drm/drm_gem_framebuffer_helper.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_crtc_helper.h>
 #include <drm/drm_of.h>
@@ -56,7 +57,7 @@ static void kirin_fbdev_output_poll_changed(struct drm_device *dev)
 }
 
 static const struct drm_mode_config_funcs kirin_drm_mode_config_funcs = {
-       .fb_create = drm_fb_cma_create,
+       .fb_create = drm_gem_fb_create,
        .output_poll_changed = kirin_fbdev_output_poll_changed,
        .atomic_check = drm_atomic_helper_check,
        .atomic_commit = drm_atomic_helper_commit,
@@ -236,8 +237,8 @@ static int kirin_drm_platform_probe(struct platform_device *pdev)
        }
 
        remote = of_graph_get_remote_node(np, 0, 0);
-       if (IS_ERR(remote))
-               return PTR_ERR(remote);
+       if (!remote)
+               return -ENODEV;
 
        drm_of_component_match_add(dev, &match, compare_of, remote);
        of_node_put(remote);