Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp956898pxu; Fri, 11 Dec 2020 20:13:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhrt3tXOX3aJkR2sY6gL/MfQ4Xyv6hxH6YtSuwShAG8/todQFX8HNPTCdzrW/t7p+VC6gF X-Received: by 2002:a05:6402:c4:: with SMTP id i4mr593101edu.152.1607746388191; Fri, 11 Dec 2020 20:13:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607746388; cv=none; d=google.com; s=arc-20160816; b=MBmX92CB0qqFPgyi6POwCeFTV3CmvLhOZihFeRPWEIvVbN/LBMyIIi6c5caHAQri2P ewY57kYdW4zLNpWYJ6MqSvL+zSo7gCLJyBAH6Xb2lzu4R1Aiv7DJQ2JN2102ie1VTDR+ ZxKIc8ift06GyOWqmQXmkfbo0QRc0Qamn6fMqkuiOnPeMxmRPa5Cxko4HdQYn60mZxdT /Cz0A9HNQVFlKrzkiDvg0oLEkvwrFt6Ne/tK4gSoBb5MIUPKz/PO3sk5BwOUVgfSCQEQ fxiJQJhXuCg1fRQXiiRkls9G0nngupwv49Fn7TSoT34fuWGkTKsO/S+lHqO/+dUBVbXx DB9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:to:from; bh=49WkDIA6uxRGxjUg6ljPmMY+4+d3438ujeZA2rLdC60=; b=iKpH0xxa5vlRu8nE3gmUnKEVbW390Vpj7geOqRNjpmeh7XucrwKqhUMHyaZqv4eYU6 6wCTtr9U3mXo5Y4xm+xoCBMjw62q4vFlgXV3fJ1oRvMf471wCvUcZrzVwgGYQamsxdXP kKqvZVyYpZLJ0dVxt9uY96GX3A6SHOPDcTu2eeeonn804kunr0j87JWznp3GwXIyVSmv +pvxg4jJ7EDPyAOKtWVWOKDXIDRafU7qVuoH8X34fkU7iRz0R3bcHRbazkxl6fn4S/EE 9SGvvDDm7Z7fDkhkpxFnSivuy05tRvS46A8PMrSa9znuPemri4qYlJWicJo4RzL0KKcz cK7Q== 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 o90si6083099eda.435.2020.12.11.20.12.45; Fri, 11 Dec 2020 20:13:08 -0800 (PST) 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 S1730472AbgLKHDV (ORCPT + 99 others); Fri, 11 Dec 2020 02:03:21 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9509 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728013AbgLKHCz (ORCPT ); Fri, 11 Dec 2020 02:02:55 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CshXf1LvBzhq7C; Fri, 11 Dec 2020 15:01:38 +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; Fri, 11 Dec 2020 15:02:08 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH] drm/hisilicon: Add the CONFIG_PM_SLEEP Date: Fri, 11 Dec 2020 15:02:20 +0800 Message-ID: <1607670140-37943-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org add the CONFIG_PM_SLEEP to isolate the function of resume and suspend. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c index 7e91ef1..faa664d 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c @@ -65,6 +65,7 @@ static const struct drm_driver hibmc_driver = { .irq_handler = hibmc_drm_interrupt, }; +#ifdef CONFIG_PM_SLEEP static int __maybe_unused hibmc_pm_suspend(struct device *dev) { struct drm_device *drm_dev = dev_get_drvdata(dev); @@ -78,6 +79,7 @@ static int __maybe_unused hibmc_pm_resume(struct device *dev) return drm_mode_config_helper_resume(drm_dev); } +#endif static const struct dev_pm_ops hibmc_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(hibmc_pm_suspend, -- 2.7.4