Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2883039pxa; Mon, 17 Aug 2020 23:56:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLGEL2LV+ViZUkDsiimu0SbY6pxYRMS5e5xX+/J3Gt74VZ+o2snZ0QXhjiAyarN2A6uwHV X-Received: by 2002:a17:906:388b:: with SMTP id q11mr19712058ejd.100.1597733793126; Mon, 17 Aug 2020 23:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597733793; cv=none; d=google.com; s=arc-20160816; b=FEzv1SQgQMHK+4QmCeff4ZSQEOjwW+Wf3VxZXCxZWqF5NLtjQhXV4y0Pm4u1FPbD1y 4/ZSTX4bzetaJ0Hzat01Q6d8UUs/TScVo96n6umrX0fD5Y/Q1N+7G+AJ3YnA8GAvyjfO nONzfRuo5nVmi4Va7x4pg8RSEqOfNrqbOAFB11QySy8s4HNAh8Gae6tOb46Ye9/c07Je +x0WiyB0Axs4KPzJ4ZM6KA7ddv4zUcJwE+WwpFFaaFS9qTe2/t85eNbeB1MGi0kYc/Nh EG3IskCN2ux84fVtvLng7yWsjMxRnYggLTT018QQ4PoLChx0r2Y0j+WKgrxwh38qh4tz XK7Q== 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=IbpWNspJc0y5QVMxhNwfwHffnb/EsfoLtIAaGjFk0hA=; b=lP7aR2/QqU+P89tO374n0Va8ymcgVS8/sZ87KjoffEm0tAdla2oLxvQKyHdqgHFF/p KJglPFm6ikMTe10EPqMohRuTjvTBkpIsc42YdA5R2jQjagz6BAzPO3kG1Pc6BarxaGZ3 y94UJPLsByO81mR9A1zIBp8LbE5pmaJtBd5w44UK+qIT9DUocb66PTJ0LQTqyBkqUulV d+bVJdy0/3qKVYP+xaT4Z9St5WxeDTkskXlfm7jst+vKCSNLiHrV5EEfq/gnBo996nw3 cWCa6pNFyDvLYpFU/0xAIUF3tI99Qza5XmEhEENr+jk1mre/DDDNprXbIqdqYfBytaJU d0gw== 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 by18si12395130ejb.185.2020.08.17.23.56.10; Mon, 17 Aug 2020 23:56:33 -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 S1726466AbgHRGyB (ORCPT + 99 others); Tue, 18 Aug 2020 02:54:01 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9829 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726366AbgHRGyB (ORCPT ); Tue, 18 Aug 2020 02:54:01 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 248A3B2E10C626655782; Tue, 18 Aug 2020 14:53:56 +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; Tue, 18 Aug 2020 14:53:49 +0800 From: Tian Tao To: , , , , , , , , CC: Subject: [PATCH drm/hisilicon 2/4] drm/hisilicon: Use drv_err instead of DRM_ERROR in hibmc_drm_vdac Date: Tue, 18 Aug 2020 14:51:42 +0800 Message-ID: <1597733504-30812-3-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597733504-30812-1-git-send-email-tiantao6@hisilicon.com> References: <1597733504-30812-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 drv_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