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: 13034995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 51128C433FE for ; Mon, 7 Nov 2022 17:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8VHwdIwoRtFxA24dE7ZY/zZzPrM/EwWwI3ETEkc316w=; b=b3JblNBdSm4bmV rs4JipH2ZgTOWfinLPXZRx5VH1F7u/rHsSncgyqYTgYo/QMmP7duwaRF3HsD6OHu1Z5/EBwttq0j4 NnL4DJVeJYWCWk+YaJ8pOHv1gN4LNJ/9PHMbN3mNquZEgkybu5lr1EpbazpgPj/YHQ8dGCTIfbhSU mjx0QiS53os+R59QAs2pGil93npYQiEF1bXwD3JORRAlqv19x8IcyzLgKYRpOUGgLPDkQ1tZOSY4B WBWvC08uFFTcz6FwRQKd4AykarvrNzmLTVzioGd+F51jd6xK693f7C6qeVv9yl8ZMzDMGwQ5PRdGd bUq5H6rYq3hjlgHoAmmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1os6HQ-00Guvu-CF; Mon, 07 Nov 2022 17:51:28 +0000 Received: from aposti.net ([89.234.176.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1os6HN-00Gur2-1W for linux-arm-kernel@lists.infradead.org; Mon, 07 Nov 2022 17:51:26 +0000 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221107_095125_302635_11663D44 X-CRM114-Status: GOOD ( 12.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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