drm/hisilicon: Use drm_err instead of DRM_ERROR in hibmc_drm_vdac
authorTian Tao <tiantao6@hisilicon.com>
Wed, 19 Aug 2020 09:23:32 +0000 (17:23 +0800)
committerTian Tao <tiantao6@hisilicon.com>
Wed, 26 Aug 2020 00:48:00 +0000 (20:48 -0400)
Use drm_err instead of DRM_ERROR in hibmc_drm_vdac

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/1597829014-39942-3-git-send-email-tiantao6@hisilicon.com
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c

index ed12f61cf46ea7481acb2976dc3679628cdcc9ac..376a05ddbc2f38041d16b7beec619c10795b648a 100644 (file)
@@ -85,7 +85,7 @@ int hibmc_vdac_init(struct hibmc_drm_private *priv)
        ret = drm_encoder_init(dev, encoder, &hibmc_encoder_funcs,
                               DRM_MODE_ENCODER_DAC, NULL);
        if (ret) {
-               DRM_ERROR("failed to init encoder: %d\n", ret);
+               drm_err(dev, "failed to init encoder: %d\n", ret);
                return ret;
        }
 
@@ -94,7 +94,7 @@ int hibmc_vdac_init(struct hibmc_drm_private *priv)
        ret = drm_connector_init(dev, connector, &hibmc_connector_funcs,
                                 DRM_MODE_CONNECTOR_VGA);
        if (ret) {
-               DRM_ERROR("failed to init connector: %d\n", ret);
+               drm_err(dev, "failed to init connector: %d\n", ret);
                return ret;
        }
        drm_connector_helper_add(connector, &hibmc_connector_helper_funcs);