From patchwork Mon Nov 7 17:50:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 16600 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2201084wru; Mon, 7 Nov 2022 09:55:00 -0800 (PST) X-Google-Smtp-Source: AMsMyM4L6yx/UkCUEV9YzTFckubZRUy9D1DN0Lif24tyMIlfCzZCvh32Svb6LsU+9hDW2eQFpFXn X-Received: by 2002:a17:90b:1c10:b0:213:1bb8:feb with SMTP id oc16-20020a17090b1c1000b002131bb80febmr69059344pjb.214.1667843700221; Mon, 07 Nov 2022 09:55:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667843700; cv=none; d=google.com; s=arc-20160816; b=WExjERzbIRLkdyp3xdrIdbWUINl1dfkVkENyYX9TAhW98aLhiMZquG6FEVa0WxVCpQ cEGgtTy/Wd0/XZ77VtQL47v8XvXL40lCRGQ3SBRz16rXLk9g8n2JCTaXySEk1V6b4ADL yFBzWkOoKdrMuSs4laf2LZg98/j49B/H3Mx4QR3+DiJTpreP5vVmwsdbWHpaCwQeVTUB DU2EewYRMZ84xdtMrijeFf67qNm3v/KuNGPuB+7IgmvL99cTvABNA/pz0x5QAOPD3uG/ g1BNHmJIsdksVGawayS9qcZfhz+sa74Zb9VhTMDvCeS/DepBiJ8pZknzG4iGD7gBAprO Xk7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Z0IvuxOw+z5I1Jelwxg7JYk5e8a4KTZtu0lWisuvsAA=; b=ggniZZFE7h8gzQgFuc0KNlkQsrUYi+4mCwmkC4mDUx0n1qfQ+jifVElG55C2EEqd44 0lJ9RH4MQ+MEhFENdC/A/YuVNp1BryA+bwKghJklhw0+39O13pQ9++WMJT03cdhPK3+L pfKHCXAc6r6MjkTcFNJ25aK89Ntb4AmYn1ZGJ/BQGta+hxajWTH0883cDsK2KaalAXyo B8pMfCz7uwvuRfQmvhJmovh7C3N3pjucehRnmVp1DLkYuZpd74672fWmbhq4rRQhD0T/ MBdhc8YIODvQETwxTOE/DuY1XKu9L9nGxmoW1ycqFWI7TRIUoZyMjAIxZyvEmq1XZTzS cgAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b="xno/RlzP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h17-20020a170902f55100b00176b26d519dsi13437181plf.350.2022.11.07.09.54.47; Mon, 07 Nov 2022 09:55:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b="xno/RlzP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232073AbiKGRvy (ORCPT + 99 others); Mon, 7 Nov 2022 12:51:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232077AbiKGRvf (ORCPT ); Mon, 7 Nov 2022 12:51:35 -0500 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 580A12317E for ; Mon, 7 Nov 2022 09:51:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1667843474; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Z0IvuxOw+z5I1Jelwxg7JYk5e8a4KTZtu0lWisuvsAA=; b=xno/RlzPPkwiCU8bqZQTuoUebofUxgdKbbJ3ikbUar9R21y2dFcY8v7URWtBk4yx2rW02I B/7hMKxtjPc7pYtPpHqP9a4KEwcRFeouwDajgB7tQ37tIvXv57VU4dMwTY7diOceMuMIDA WY3U+xUXIo4G32BxIK89jr4B6hjSpvU= From: Paul Cercueil To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Paul Cercueil , Philipp Zabel , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH 03/26] drm: imx: Use the dev_pm_ops provided by modeset helper Date: Mon, 7 Nov 2022 17:50:43 +0000 Message-Id: <20221107175106.360578-4-paul@crapouillou.net> In-Reply-To: <20221107175106.360578-1-paul@crapouillou.net> References: <20221107175106.360578-1-paul@crapouillou.net> MIME-Version: 1.0 X-Spam: Yes X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748860875724534747?= X-GMAIL-MSGID: =?utf-8?q?1748860875724534747?= Use the drm_mode_config_pm_ops structure exported by drm_modeset_helper.c, which provides the exact same PM callbacks. Signed-off-by: Paul Cercueil --- Cc: Philipp Zabel Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: linux-arm-kernel@lists.infradead.org --- drivers/gpu/drm/imx/imx-drm-core.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 8dd8b0f912af..4cbd15c2c8ea 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -10,6 +10,7 @@ #include #include #include +#include #include