Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp329009pxa; Wed, 19 Aug 2020 02:27:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmlexLnQjLThO3mUyN1ZHDYJae1ZzuNzpUIL214VWIKqJ5+yajH3b74QZ/mcfAK4I2QSa/ X-Received: by 2002:a17:906:cc48:: with SMTP id mm8mr25273483ejb.292.1597829237137; Wed, 19 Aug 2020 02:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597829237; cv=none; d=google.com; s=arc-20160816; b=L4se0Eviyii96clvntuxQPbM9KsBZqRt+yikQwLZGtlNHGVBuRii3AyzUxNTT7OqYw +CVfKWTGVS5+RVGsY2+QkcnEB3dDy+XXmODn0S4NiLGV2+9tEjnyjH9A4Kt8/MdjR9bG 2nkS+PMQBSa7x4dfbZuObJW4OjN6lsZ1mtH21p9W0VvGc1aeEIf4w9HNutRM0554RTQc wzZrIB1lxi2JcRIo3DZtYOLGHLJpWBeyPG06DA+UtEgoB0MYFGrpV5V9zvFFTOA9Ru9j Wemynh+c8rt6ffjwjjTKPbkKR5IvYS06P6TV3UygezYJkFBkLaCC+n/8/URvPRlH/m/5 3fOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=2LFhd4fpS7swvufzavuoAPn1BNFPLgR/7p+2ImMBawM=; b=oclm7a6WoX6R6u8WGtGD945jvz6gT8BKP1Tdm6kM4uXOJtn/YQ+AnBrHkKJMefTGKV CyoOHecTpb72E685oLYCv2PBkS9gf51AMQItDtKcvY9mx0feZQ3nrtFaq0i3fNylbmU6 yfIXkZ/bUqnVhav8MaHCCYvOP3zL1M6JihI3VkXOaPDpheibEK78jgkc6ZUpBBJ/DLm7 GUxQWV3lmDxLOkrBTEQU4bo60S7YixkKLVEDuE+DInu5gYaevsCzATjSaQWcVkGsn8z3 GXOpdQJdiaF4WkcjyS3aKqlcsLA5xdY+GRRGyd408w/9VbVjaJJ4WkJvq8KcV9E/7mOs /4/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q24si14882006eds.349.2020.08.19.02.26.53; Wed, 19 Aug 2020 02:27:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726989AbgHSJ0A (ORCPT + 99 others); Wed, 19 Aug 2020 05:26:00 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:9771 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727069AbgHSJZv (ORCPT ); Wed, 19 Aug 2020 05:25:51 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D7F74EB90568D6566459; Wed, 19 Aug 2020 17:25:47 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Wed, 19 Aug 2020 17:25:40 +0800 From: Tian Tao To: , , , , , , , , CC: Subject: [PATCH drm/hisilicon v2 2/4] drm/hisilicon: Use drm_err instead of DRM_ERROR in hibmc_drm_vdac Date: Wed, 19 Aug 2020 17:23:32 +0800 Message-ID: <1597829014-39942-3-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597829014-39942-1-git-send-email-tiantao6@hisilicon.com> References: <1597829014-39942-1-git-send-email-tiantao6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use drm_err instead of DRM_ERROR in hibmc_drm_vdac Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c index ed12f61..376a05d 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c @@ -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); -- 2.7.4